The lines are:
Code: Select all
#----------------------------------------------------------------------
# Button Row
#
buttonRow = gtk.HButtonBox()
buttonRow.set_border_width(BORDER_WIDTH)
# Set the appearance of the Button Box
buttonRow.set_layout(gtk.BUTTONBOX_SPREAD)
spacing = 10
child_w = 30
child_h = 20
buttonRow.set_spacing(spacing)
# helpButton = gtk.Button(stock = gtk.STOCK_HELP)
# buttonRow.add(helpButton)
cancelButton = gtk.Button(stock = gtk.STOCK_CANCEL)
cancelButton.connect("clicked", self.on_cancel_button_clicked)
buttonRow.add(cancelButton)
applyButton = gtk.Button(stock = gtk.STOCK_APPLY)
applyButton.connect("clicked", self.on_apply_button_clicked)
buttonRow.add(applyButton)
mainVBox.pack_start(buttonRow, True, True, 0)
buttonRow.show()
self.mainWindow.set_position(gtk.WIN_POS_CENTER)
self.mainWindow.show_all()
def update(self, data):
debug("AntixUsbLiveGui.update")
if DO_DEBUG:
data.print_params()
#adj = gtk.Adjustment(lower = data.partitionMinSize, upper = data.partitionMaxSize)
#self.partitionSizeSpinButton = gtk.SpinButton(adj)
self.partitionSizeSpinButton.set_range(data.partitionMinSize, data.partitionMaxSize)
self.partitionSizeSpinButton.set_value(data.partitionSize)
self.persistenceCheckButton.set_active(data.persistence)