bugged stringlengths 4 228k | fixed stringlengths 0 96.3M | __index_level_0__ int64 0 481k |
|---|---|---|
def doExit (self, dialog, response): dialog.destroy() if response == gtk.RESPONSE_YES: gtk.mainquit() | def doExit (self, dialog, response): dialog.destroy() if response == gtk.RESPONSE_YES: gtk.mainquit() | 26,600 |
def __init__ (self, callback, lower, upper, integer): gtk.VBox.__init__ (self) diff = upper - lower self.isInteger = integer if integer: step = 1 page = (diff+4) / 5 self.digits = 1 else: self.digits = -int(math.floor(math.log10(diff) + 0.5)) + 3 step = math.pow(10, -self.digits + 1) page = step * 10 if self.digits < 0... | def __init__ (self, callback, lower, upper, integer): gtk.VBox.__init__ (self) diff = upper - lower self.isInteger = integer if integer: step = 1 page = (diff+4) / 5 self.digits = 0 else: self.digits = -int(math.floor(math.log10(diff) + 0.5)) + 3 step = math.pow(10, -self.digits + 1) page = step * 10 if self.digits < 0... | 26,601 |
def __init__ (self, data): """ Constructor. """ gtk.Image.__init__ (self) pixmap, mask = gtk.gdk.pixmap_colormap_create_from_xpm_d(None, self.window.get_colormap(), None, data) self.set_from_pixmap (pixmap, mask) | def __init__ (self, data): """ Constructor. """ gtk.Image.__init__ (self) pixmap, mask = gtk.gdk.pixmap_colormap_create_from_xpm_d(None, self.window.get_colormap(), None, data) self.set_from_pixmap (pixmap, mask) | 26,602 |
def __init__ (self, driver, app): """ Constructor. """ gtk.Frame.__init__ (self, "Application: " + app.name) self.driver = driver self.app = app table = gtk.Table(2, 2) execLabel = gtk.Label ("Executable:") execLabel.show() table.attach (execLabel, 0, 1, 0, 1, 0, 0, 5, 5) self.execEntry = gtk.Entry() if app.executable ... | def __init__ (self, driver, app): """ Constructor. """ gtk.Frame.__init__ (self, "Application: " + app.name) self.driver = driver self.app = app table = gtk.Table(2, 2) execLabel = gtk.Label ("Executable:") execLabel.show() table.attach (execLabel, 0, 1, 0, 1, 0, 0, 5, 5) self.execEntry = gtk.Entry() if app.executable ... | 26,603 |
def __init__ (self, title, callback): gtk.Dialog.__init__ (self) self.set_transient_for (mainWindow) self.set_title (title) self.callback = callback ok = gtk.Button ("OK") ok.set_flags (CAN_DEFAULT) ok.connect ("clicked", self.okSignal) ok.show() self.action_area.pack_start (ok, TRUE, FALSE, 10) cancel = gtk.Button ("C... | def __init__ (self, title, callback): gtk.Dialog.__init__ (self) self.set_transient_for (mainWindow) self.set_title (title) self.callback = callback ok = gtk.Button ("OK") ok.set_flags (gtk.CAN_DEFAULT) ok.connect ("clicked", self.okSignal) ok.show() self.action_area.pack_start (ok, TRUE, FALSE, 10) cancel = gtk.Button... | 26,604 |
def __init__ (self, title, callback): gtk.Dialog.__init__ (self) self.set_transient_for (mainWindow) self.set_title (title) self.callback = callback ok = gtk.Button ("OK") ok.set_flags (CAN_DEFAULT) ok.connect ("clicked", self.okSignal) ok.show() self.action_area.pack_start (ok, TRUE, FALSE, 10) cancel = gtk.Button ("C... | def __init__ (self, title, callback): gtk.Dialog.__init__ (self) self.set_transient_for (mainWindow) self.set_title (title) self.callback = callback ok = gtk.Button ("OK") ok.set_flags (CAN_DEFAULT) ok.connect ("clicked", self.okSignal) ok.show() self.action_area.pack_start (ok, TRUE, FALSE, 10) cancel = gtk.Button ("C... | 26,605 |
def selectRowSignal (self, widget, row, column, event, data): type, obj = self.get_row_data (row) if type == "app": app = obj try: driver = app.device.getDriver (dpy) except dri.XMLError, problem: driver = None MessageDialog ("Error", "Parsing the driver's configuration information: " + str(problem), modal=FALSE) else:... | def selectRowSignal (self, widget, row, column, event, data): type, obj = self.get_row_data (row) if type == "app": app = obj try: driver = app.device.getDriver (dpy) except dri.XMLError, problem: driver = None dialog = gtk.MessageDialog ( mainWindow, gtk.DIALOG_DESTROY_WITH_PARENT, gtk.MESSAGE_ERROR, gtk.BUTTONS_OK, "... | 26,606 |
def selectRowSignal (self, widget, row, column, event, data): type, obj = self.get_row_data (row) if type == "app": app = obj try: driver = app.device.getDriver (dpy) except dri.XMLError, problem: driver = None MessageDialog ("Error", "Parsing the driver's configuration information: " + str(problem), modal=FALSE) else:... | def selectRowSignal (self, widget, row, column, event, data): type, obj = self.get_row_data (row) if type == "app": app = obj try: driver = app.device.getDriver (dpy) except dri.XMLError, problem: driver = None MessageDialog ("Error", "Parsing the driver's configuration information: " + str(problem), modal=FALSE) else:... | 26,607 |
def removeItem (self, widget): try: node = self.getSelection() except SelectionError: return type, obj = self.node_get_row_data (node) if type == "app": MessageDialog ("Question", "Really delete application \"" + obj.name + "\"?", ["Yes", "No"], self.doRemoveItem) elif type == "device": MessageDialog ("Question", "Real... | def removeItem (self, widget): try: node = self.getSelection() except SelectionError: return type, obj = self.node_get_row_data (node) if type == "app": dialog = gtk.MessageDialog ( mainWindow, gtk.DIALOG_DESTROY_WITH_PARENT, gtk.MESSAGE_QUESTION, gtk.BUTTONS_YES_NO, "Really delete application \"%s\"?" % obj.name) elif... | 26,608 |
def removeItem (self, widget): try: node = self.getSelection() except SelectionError: return type, obj = self.node_get_row_data (node) if type == "app": MessageDialog ("Question", "Really delete application \"" + obj.name + "\"?", ["Yes", "No"], self.doRemoveItem) elif type == "device": MessageDialog ("Question", "Real... | def removeItem (self, widget): try: node = self.getSelection() except SelectionError: return type, obj = self.node_get_row_data (node) if type == "app": MessageDialog ("Question", "Really delete application \"" + obj.name + "\"?", ["Yes", "No"], self.doRemoveItem) elif type == "device": MessageDialog ("Question", "Real... | 26,609 |
def doRemoveItem (self, buttonName): if buttonName != "Yes": return try: node = self.getSelection() except SelectionError: return type, obj = self.node_get_row_data (node) if type == "app": parent = obj.device config = parent.config siblings = parent.apps elif type == "device": parent = obj.config config = parent sibli... | def doRemoveItem (self, buttonName): if buttonName != "Yes": return try: node = self.getSelection() except SelectionError: return type, obj = self.node_get_row_data (node) if type == "app": parent = obj.device config = parent.config siblings = parent.apps elif type == "device": parent = obj.config config = parent sibli... | 26,610 |
def saveConfig (self, widget): self.doSaveConfig() | def saveConfig (self, widget): self.doSaveConfig() | 26,611 |
def doSaveConfig (self, reallySave="dunno"): if reallySave == "No": return try: node = self.getSelection() except SelectionError: return type, config = self.node_get_row_data (node) if type == "app": config = config.device type = "device" if type == "device": config = config.config type = "config" if reallySave == "dun... | def doSaveConfig (self, reallySave="dunno"): if reallySave == "No": return try: node = self.getSelection() except SelectionError: return type, config = self.node_get_row_data (node) if type == "app": config = config.device type = "device" if type == "device": config = config.config type = "config" valid = 1 for device ... | 26,612 |
def doSaveConfig (self, reallySave="dunno"): if reallySave == "No": return try: node = self.getSelection() except SelectionError: return type, config = self.node_get_row_data (node) if type == "app": config = config.device type = "device" if type == "device": config = config.config type = "config" if reallySave == "dun... | def doSaveConfig (self, reallySave="dunno"): if reallySave == "No": return try: node = self.getSelection() except SelectionError: return type, config = self.node_get_row_data (node) if type == "app": config = config.device type = "device" if type == "device": config = config.config type = "config" if reallySave == "dun... | 26,613 |
def reloadConfig (self, widget): self.doReloadConfig () | def reloadConfig (self, widget): self.doReloadConfig () | 26,614 |
def doReloadConfig (self, reallyReload="dunno"): if reallyReload == "No": return try: node = self.getSelection() except SelectionError: return type, obj = self.node_get_row_data (node) if type == "app": config = obj.device.config elif type == "device": config = obj.config if reallyReload == "dunno": MessageDialog ("Que... | def doReloadConfig (self, reallyReload="dunno"): if reallyReload == "No": return try: node = self.getSelection() except SelectionError: return type, obj = self.node_get_row_data (node) if type == "app": config = obj.device.config elif type == "device": config = obj.config else: config = obj dialog = gtk.MessageDialog (... | 26,615 |
def doReloadConfig (self, reallyReload="dunno"): if reallyReload == "No": return try: node = self.getSelection() except SelectionError: return type, obj = self.node_get_row_data (node) if type == "app": config = obj.device.config elif type == "device": config = obj.config if reallyReload == "dunno": MessageDialog ("Que... | def doReloadConfig (self, reallyReload="dunno"): if reallyReload == "No": return try: node = self.getSelection() except SelectionError: return type, obj = self.node_get_row_data (node) if type == "app": config = obj.device.config elif type == "device": config = obj.config if reallyReload == "dunno": MessageDialog ("Que... | 26,616 |
def doReloadConfig (self, reallyReload="dunno"): if reallyReload == "No": return try: node = self.getSelection() except SelectionError: return type, obj = self.node_get_row_data (node) if type == "app": config = obj.device.config elif type == "device": config = obj.config if reallyReload == "dunno": MessageDialog ("Que... | def doReloadConfig (self, reallyReload="dunno"): if reallyReload == "No": return try: node = self.getSelection() except SelectionError: return type, obj = self.node_get_row_data (node) if type == "app": config = obj.device.config elif type == "device": config = obj.config if reallyReload == "dunno": MessageDialog ("Que... | 26,617 |
def exitHandler (self, widget, event=None): modified = FALSE for config in self.configTree.getConfigList(): if config.modified: modified = TRUE break if modified: MessageDialog ("Question", "There are unsaved modifications. Exit anyway?", ["Yes", "No"], self.doExit) return TRUE elif event == None: gtk.mainquit() else: ... | def exitHandler (self, widget, event=None): modified = FALSE for config in self.configTree.getConfigList(): if config.modified: modified = TRUE break if modified: dialog = gtk.MessageDialog ( mainWindow, gtk.DIALOG_DESTROY_WITH_PARENT|gtk.DIALOG_MODAL, gtk.MESSAGE_QUESTION, gtk.BUTTONS_YES_NO, "There are unsaved modifi... | 26,618 |
def doExit (self, choice): if choice == "Yes": gtk.mainquit() | def doExit (self, dialog, response): dialog.destroy() if response == gtk.RESPONSE_YES: gtk.mainquit() | 26,619 |
def validate (self): """ Validate the current value from the option widget. | def validate (self): """ Validate the current value from the option widget. | 26,620 |
def validate (self): """ Validate the configuration. | def validate (self): """ Validate the configuration. | 26,621 |
def validateAppNode (self, app): try: driver = app.device.getDriver(dpy) except dri.XMLError: driver = None if driver: if driver.validate (app.options): style = self.get_style().copy() style.fg[gtk.STATE_NORMAL] = self.defaultFg self.node_set_row_style(app.node, style) else: style = self.get_style().copy() style.fg[gtk... | def validateAppNode (self, app): try: driver = app.device.getDriver(dpy) except dri.XMLError: driver = None if driver: if driver.validate (app.options): style = self.get_style().copy() style.fg[gtk.STATE_NORMAL] = self.defaultFg self.node_set_row_style(app.node, style) else: style = self.get_style().copy() style.fg[gtk... | 26,622 |
def StrToValue (str, type): """ Helper: convert str to given type. Raises an XMLError if str is not of the correct type. """ try: if type == "int": return int (str); elif type == "float": return float (str); else: if str == "true": return 1 elif str == "false": return 0 else: raise ValueError except ValueError: raise ... | def StrToValue (str, type): """ Helper: convert str to given type. Raises an XMLError if str is not of the correct type. """ try: if type == "int" or type == "enum": return int (str); elif type == "float": return float (str); else: if str == "true": return 1 elif str == "false": return 0 else: raise ValueError except ... | 26,623 |
def ValueToStr (value, type): """ Helper: convert value of given type to string. """ if type == "int" or type == "float": return str(value) elif value: return "true" else: return "false" | def ValueToStr (value, type): """ Helper: convert value of given type to string. """ if type == "int" or type == "enum" or type == "float": return str(value) elif value: return "true" else: return "false" | 26,624 |
def __init__ (self, str, type): """ Parse str as a range. | def __init__ (self, str, type): """ Parse str as a range. | 26,625 |
def __init__ (self, name, type, default, valid = None): """ Initialize option information. | def __init__ (self, name, type, default, valid = None): """ Initialize option information. | 26,626 |
def editedSignal (self, widget, row, newVal, value): row = int(row) name = self.opts[row] print "%s(%d): %s" % (name, row, newVal) iter = self.store.get_iter_first() for i in range(row): iter = self.store.iter_next (iter) if value: if self.app.options[name] == newVal: return self.app.options[name] = newVal self.store.s... | def editedSignal (self, widget, row, newVal, value): row = int(row) name = self.opts[row] iter = self.store.get_iter_first() for i in range(row): iter = self.store.iter_next (iter) if value: if self.app.options[name] == newVal: return self.app.options[name] = newVal self.store.set (iter, 0, str(name), 1, str(newVal), 2... | 26,627 |
def initWidget (self, opt, value): """ Initialize the option widget. | def initWidget (self, opt, value): """ Initialize the option widget. | 26,628 |
def on_get_value (self, node, col): if node.__class__ == dri.DRIConfig: return str(node.fileName) elif node.__class__ == dri.DeviceConfig: if node.screen and node.driver: name = "Screen %s Driver %s" % (node.screen, node.driver) elif node.screen: name = "Screen %s" % node.screen elif node.driver: name = "Driver %s" % n... | def on_get_value (self, node, col): if node.__class__ == dri.DRIConfig: return str(node.fileName) elif node.__class__ == dri.DeviceConfig: if node.screen and node.driver: name = "Screen %s Driver %s" % (node.screen, node.driver) elif node.screen: name = "Screen %s" % node.screen elif node.driver: name = "Driver %s" % n... | 26,629 |
def __init__ (self, configList): self.model = ConfigTreeModel (configList) gtk.TreeView.__init__ (self, self.model) self.set_size_request (200, -1) self.set_headers_visible (FALSE) self.expand_all() self.get_selection().set_mode (gtk.SELECTION_BROWSE) self.get_selection().connect ("changed", self.selectionChangedSignal... | def __init__ (self, configList): self.model = ConfigTreeModel (configList) gtk.TreeView.__init__ (self, self.model) self.set_size_request (200, -1) self.set_headers_visible (FALSE) self.expand_all() self.get_selection().set_mode (gtk.SELECTION_BROWSE) self.get_selection().connect ("changed", self.selectionChangedSignal... | 26,630 |
def validateAppNode (self, app): try: driver = app.device.getDriver(dpy) except dri.XMLError: driver = None if driver and driver.validate (app.options): #style = self.get_style().copy() #style.fg[gtk.STATE_NORMAL] = self.defaultFg #self.node_set_row_style(app.node, style) pass else: #style = self.get_style().copy() #st... | def validateAppNode (self, app): try: driver = app.device.getDriver(dpy) except dri.XMLError: driver = None if driver and driver.validate (app.options): #style = self.get_style().copy() #style.fg[gtk.STATE_NORMAL] = self.defaultFg #self.node_set_row_style(app.node, style) pass else: #style = self.get_style().copy() #st... | 26,631 |
def __init__ (self, configList): self.model = ConfigTreeModel (configList) gtk.TreeView.__init__ (self, self.model) self.model.renderIcons (self) self.set_size_request (200, -1) self.set_headers_visible (FALSE) self.expand_all() self.get_selection().set_mode (gtk.SELECTION_BROWSE) self.get_selection().connect ("changed... | def __init__ (self, configList): self.model = ConfigTreeModel (configList) gtk.TreeView.__init__ (self, self.model) self.model.renderIcons (self) self.set_size_request (200, -1) self.set_headers_visible (FALSE) self.expand_all() self.get_selection().set_mode (gtk.SELECTION_BROWSE) self.get_selection().connect ("changed... | 26,632 |
def selectRowSignal (self, widget, row, column, event, data): type, obj = self.get_row_data (row) if type == "app": app = obj try: driver = app.device.getDriver (dpy) except dri.XMLError, problem: driver = None MessageDialog ("Error", "Parsing the driver's configuration information: " + problem, modal=FALSE) else: if d... | def selectRowSignal (self, widget, row, column, event, data): type, obj = self.get_row_data (row) if type == "app": app = obj try: driver = app.device.getDriver (dpy) except dri.XMLError, problem: driver = None MessageDialog ("Error", "Parsing the driver's configuration information: " + str(problem), modal=FALSE) else:... | 26,633 |
def initWidget (self, opt, value): """ Initialize the option widget. | def initWidget (self, opt, value): """ Initialize the option widget. | 26,634 |
def __init__ (self, title, parent, app=None): gtk.Dialog.__init__(self, title, parent, gtk.DIALOG_MODAL|gtk.DIALOG_DESTROY_WITH_PARENT, ("gtk-ok", gtk.RESPONSE_OK, "gtk-cancel", gtk.RESPONSE_CANCEL)) table = gtk.Table(3, 2) nameLabel = gtk.Label(_("Application Name")) nameLabel.show() table.attach(nameLabel, 0, 1, 0, 1... | def __init__ (self, title, parent, app=None): gtk.Dialog.__init__(self, title, parent, gtk.DIALOG_MODAL|gtk.DIALOG_DESTROY_WITH_PARENT, ("gtk-ok", gtk.RESPONSE_OK, "gtk-cancel", gtk.RESPONSE_CANCEL)) table = gtk.Table(3, 2) nameLabel = gtk.Label(_("Application Name")) nameLabel.show() table.attach(nameLabel, 0, 1, 0, 1... | 26,635 |
def __init__ (self, data): """ Constructor. """ DataPixmap.window.realize() style = DataPixmap.window.get_style() pixmap, mask = create_pixmap_from_xpm_d(DataPixmap.window.get_window(), style.bg[STATE_NORMAL], data) GtkPixmap.__init__ (self, pixmap, mask) | def __init__ (self, data): """ Constructor. """ DataPixmap.window.realize() style = DataPixmap.window.get_style() pixmap, mask = create_pixmap_from_xpm_d(DataPixmap.window.get_window(), style.bg[STATE_NORMAL], data) GtkPixmap.__init__ (self, pixmap, mask) | 26,636 |
def __init__ (self, title, message, buttons = ["OK"], callback = None, modal = TRUE): """ Constructor. """ GtkDialog.__init__ (self) if mainWindow: self.set_transient_for (mainWindow) self.callback = callback self.set_title (title) first = None for name in buttons: button = GtkButton (name) button.set_flags (CAN_DEFAUL... | def __init__ (self, title, message, buttons = ["OK"], callback = None, modal = TRUE): """ Constructor. """ gtk.Dialog.__init__ (self) if mainWindow: self.set_transient_for (mainWindow) self.callback = callback self.set_title (title) first = None for name in buttons: button = GtkButton (name) button.set_flags (CAN_DEFAU... | 26,637 |
def __init__ (self, title, message, buttons = ["OK"], callback = None, modal = TRUE): """ Constructor. """ GtkDialog.__init__ (self) if mainWindow: self.set_transient_for (mainWindow) self.callback = callback self.set_title (title) first = None for name in buttons: button = GtkButton (name) button.set_flags (CAN_DEFAUL... | def __init__ (self, title, message, buttons = ["OK"], callback = None, modal = TRUE): """ Constructor. """ GtkDialog.__init__ (self) if mainWindow: self.set_transient_for (mainWindow) self.callback = callback self.set_title (title) first = None for name in buttons: button = gtk.Button (name) button.set_flags (gtk.CAN_D... | 26,638 |
def __init__ (self, title, message, buttons = ["OK"], callback = None, modal = TRUE): """ Constructor. """ GtkDialog.__init__ (self) if mainWindow: self.set_transient_for (mainWindow) self.callback = callback self.set_title (title) first = None for name in buttons: button = GtkButton (name) button.set_flags (CAN_DEFAUL... | def __init__ (self, title, message, buttons = ["OK"], callback = None, modal = TRUE): """ Constructor. """ GtkDialog.__init__ (self) if mainWindow: self.set_transient_for (mainWindow) self.callback = callback self.set_title (title) first = None for name in buttons: button = GtkButton (name) button.set_flags (CAN_DEFAUL... | 26,639 |
def clickedSignal (self, widget, name): """ Handler for clicked signals. """ if self.callback: self.callback (name) self.destroy() | def clickedSignal (self, widget, name): """ Handler for clicked signals. """ if self.callback: self.callback (name) self.destroy() | 26,640 |
def __init__ (self, label, justify=JUSTIFY_LEFT, wrap=TRUE, width=0, height=0): """ Constructor. """ GtkCheckButton.__init__ (self) checkHBox = GtkHBox() checkLabel = GtkLabel(label) checkLabel.set_justify (justify) checkLabel.set_line_wrap (wrap) checkLabel.set_usize (width, height) checkLabel.show() checkHBox.pack_st... | def __init__ (self, label, justify=gtk.JUSTIFY_LEFT, wrap=TRUE, width=-1, height=-1): """ Constructor. """ GtkCheckButton.__init__ (self) checkHBox = GtkHBox() checkLabel = GtkLabel(label) checkLabel.set_justify (justify) checkLabel.set_line_wrap (wrap) checkLabel.set_usize (width, height) checkLabel.show() checkHBox.p... | 26,641 |
def __init__ (self, label, justify=JUSTIFY_LEFT, wrap=TRUE, width=0, height=0): """ Constructor. """ GtkCheckButton.__init__ (self) checkHBox = GtkHBox() checkLabel = GtkLabel(label) checkLabel.set_justify (justify) checkLabel.set_line_wrap (wrap) checkLabel.set_usize (width, height) checkLabel.show() checkHBox.pack_st... | def __init__ (self, label, justify=JUSTIFY_LEFT, wrap=TRUE, width=0, height=0): """ Constructor. """ gtk.CheckButton.__init__ (self) checkHBox = gtk.HBox() checkLabel = gtk.Label(label) checkLabel.set_justify (justify) checkLabel.set_line_wrap (wrap) checkLabel.set_usize (width, height) checkLabel.show() checkHBox.pack... | 26,642 |
def __init__ (self, label, justify=JUSTIFY_LEFT, wrap=TRUE, width=0, height=0): """ Constructor. """ GtkCheckButton.__init__ (self) checkHBox = GtkHBox() checkLabel = GtkLabel(label) checkLabel.set_justify (justify) checkLabel.set_line_wrap (wrap) checkLabel.set_usize (width, height) checkLabel.show() checkHBox.pack_st... | def __init__ (self, label, justify=JUSTIFY_LEFT, wrap=TRUE, width=0, height=0): """ Constructor. """ GtkCheckButton.__init__ (self) checkHBox = GtkHBox() checkLabel = GtkLabel(label) checkLabel.set_justify (justify) checkLabel.set_line_wrap (wrap) checkLabel.set_size_request (width, height) checkLabel.show() checkHBox.... | 26,643 |
def __init__ (self, label, justify=JUSTIFY_LEFT, wrap=TRUE, width=0, height=0): """ Constructor. """ GtkCheckButton.__init__ (self) checkHBox = GtkHBox() checkLabel = GtkLabel(label) checkLabel.set_justify (justify) checkLabel.set_line_wrap (wrap) checkLabel.set_usize (width, height) checkLabel.show() checkHBox.pack_st... | def __init__ (self, label, justify=JUSTIFY_LEFT, wrap=TRUE, width=0, height=0): """ Constructor. """ GtkCheckButton.__init__ (self) checkHBox = GtkHBox() checkLabel = GtkLabel(label) checkLabel.set_justify (justify) checkLabel.set_line_wrap (wrap) checkLabel.set_usize (width, height) checkLabel.show() checkHBox.pack_st... | 26,644 |
def __init__ (self, optValList, callback, justify=JUSTIFY_LEFT, wrap=TRUE, width=0, height=0): """ Constructor. """ GtkButton.__init__ (self) self.callback = callback self.optDict = {} self.valDict = {} for opt,val in optValList: self.optDict[opt] = val self.valDict[val] = opt firstOpt,firstVal = optValList[len(optValL... | def __init__ (self, optValList, callback, justify=gtk.JUSTIFY_LEFT, wrap=TRUE, width=-1, height=-1): """ Constructor. """ GtkButton.__init__ (self) self.callback = callback self.optDict = {} self.valDict = {} for opt,val in optValList: self.optDict[opt] = val self.valDict[val] = opt firstOpt,firstVal = optValList[len(o... | 26,645 |
def __init__ (self, optValList, callback, justify=JUSTIFY_LEFT, wrap=TRUE, width=0, height=0): """ Constructor. """ GtkButton.__init__ (self) self.callback = callback self.optDict = {} self.valDict = {} for opt,val in optValList: self.optDict[opt] = val self.valDict[val] = opt firstOpt,firstVal = optValList[len(optValL... | def __init__ (self, optValList, callback, justify=JUSTIFY_LEFT, wrap=TRUE, width=0, height=0): """ Constructor. """ gtk.Button.__init__ (self) self.callback = callback self.optDict = {} self.valDict = {} for opt,val in optValList: self.optDict[opt] = val self.valDict[val] = opt firstOpt,firstVal = optValList[len(optVal... | 26,646 |
def __init__ (self, optValList, callback, justify=JUSTIFY_LEFT, wrap=TRUE, width=0, height=0): """ Constructor. """ GtkButton.__init__ (self) self.callback = callback self.optDict = {} self.valDict = {} for opt,val in optValList: self.optDict[opt] = val self.valDict[val] = opt firstOpt,firstVal = optValList[len(optValL... | def __init__ (self, optValList, callback, justify=JUSTIFY_LEFT, wrap=TRUE, width=0, height=0): """ Constructor. """ GtkButton.__init__ (self) self.callback = callback self.optDict = {} self.valDict = {} for opt,val in optValList: self.optDict[opt] = val self.valDict[val] = opt firstOpt,firstVal = optValList[len(optValL... | 26,647 |
def __init__ (self, optValList, callback, justify=JUSTIFY_LEFT, wrap=TRUE, width=0, height=0): """ Constructor. """ GtkButton.__init__ (self) self.callback = callback self.optDict = {} self.valDict = {} for opt,val in optValList: self.optDict[opt] = val self.valDict[val] = opt firstOpt,firstVal = optValList[len(optValL... | def __init__ (self, optValList, callback, justify=JUSTIFY_LEFT, wrap=TRUE, width=0, height=0): """ Constructor. """ GtkButton.__init__ (self) self.callback = callback self.optDict = {} self.valDict = {} for opt,val in optValList: self.optDict[opt] = val self.valDict[val] = opt firstOpt,firstVal = optValList[len(optValL... | 26,648 |
def __init__ (self, optValList, callback, justify=JUSTIFY_LEFT, wrap=TRUE, width=0, height=0): """ Constructor. """ GtkButton.__init__ (self) self.callback = callback self.optDict = {} self.valDict = {} for opt,val in optValList: self.optDict[opt] = val self.valDict[val] = opt firstOpt,firstVal = optValList[len(optValL... | def __init__ (self, optValList, callback, justify=JUSTIFY_LEFT, wrap=TRUE, width=0, height=0): """ Constructor. """ GtkButton.__init__ (self) self.callback = callback self.optDict = {} self.valDict = {} for opt,val in optValList: self.optDict[opt] = val self.valDict[val] = opt firstOpt,firstVal = optValList[len(optValL... | 26,649 |
def __init__ (self, optValList, callback, justify=JUSTIFY_LEFT, wrap=TRUE, width=0, height=0): """ Constructor. """ GtkButton.__init__ (self) self.callback = callback self.optDict = {} self.valDict = {} for opt,val in optValList: self.optDict[opt] = val self.valDict[val] = opt firstOpt,firstVal = optValList[len(optValL... | def __init__ (self, optValList, callback, justify=JUSTIFY_LEFT, wrap=TRUE, width=0, height=0): """ Constructor. """ GtkButton.__init__ (self) self.callback = callback self.optDict = {} self.valDict = {} for opt,val in optValList: self.optDict[opt] = val self.valDict[val] = opt firstOpt,firstVal = optValList[len(optValL... | 26,650 |
def __init__ (self, optValList, callback, justify=JUSTIFY_LEFT, wrap=TRUE, width=0, height=0): """ Constructor. """ GtkButton.__init__ (self) self.callback = callback self.optDict = {} self.valDict = {} for opt,val in optValList: self.optDict[opt] = val self.valDict[val] = opt firstOpt,firstVal = optValList[len(optValL... | def __init__ (self, optValList, callback, justify=JUSTIFY_LEFT, wrap=TRUE, width=0, height=0): """ Constructor. """ GtkButton.__init__ (self) self.callback = callback self.optDict = {} self.valDict = {} for opt,val in optValList: self.optDict[opt] = val self.valDict[val] = opt firstOpt,firstVal = optValList[len(optValL... | 26,651 |
def buttonPress (self, widget, event): """ Popup the menu. """ if event.type == GDK.BUTTON_PRESS: self.menu.popup(None, None, None, event.button, event.time) return TRUE else: return FALSE | def buttonPress (self, widget, event): """ Popup the menu. """ if event.type == gtk.gdk.BUTTON_PRESS: self.menu.popup(None, None, None, event.button, event.time) return TRUE else: return FALSE | 26,652 |
def __init__ (self, page, i, opt): """ Constructor. """ self.page = page self.opt = opt typeString = opt.type if opt.valid: typeString = typeString+" ["+ \ reduce(lambda x,y: x+','+y, map(str,opt.valid))+"]" # a check button with an option description desc = opt.getDesc([lang]) if desc != None: desc = desc.text else: d... | def __init__ (self, page, i, opt): """ Constructor. """ self.page = page self.opt = opt typeString = opt.type if opt.valid: typeString = typeString+" ["+ \ reduce(lambda x,y: x+','+y, map(str,opt.valid))+"]" # a check button with an option description desc = opt.getDesc([lang]) if desc != None: desc = desc.text else: d... | 26,653 |
def __init__ (self, page, i, opt): """ Constructor. """ self.page = page self.opt = opt typeString = opt.type if opt.valid: typeString = typeString+" ["+ \ reduce(lambda x,y: x+','+y, map(str,opt.valid))+"]" # a check button with an option description desc = opt.getDesc([lang]) if desc != None: desc = desc.text else: d... | def __init__ (self, page, i, opt): """ Constructor. """ self.page = page self.opt = opt typeString = opt.type if opt.valid: typeString = typeString+" ["+ \ reduce(lambda x,y: x+','+y, map(str,opt.valid))+"]" # a check button with an option description desc = opt.getDesc([lang]) if desc != None: desc = desc.text else: d... | 26,654 |
def __init__ (self, page, i, opt): """ Constructor. """ self.page = page self.opt = opt typeString = opt.type if opt.valid: typeString = typeString+" ["+ \ reduce(lambda x,y: x+','+y, map(str,opt.valid))+"]" # a check button with an option description desc = opt.getDesc([lang]) if desc != None: desc = desc.text else: d... | def __init__ (self, page, i, opt): """ Constructor. """ self.page = page self.opt = opt typeString = opt.type if opt.valid: typeString = typeString+" ["+ \ reduce(lambda x,y: x+','+y, map(str,opt.valid))+"]" # a check button with an option description desc = opt.getDesc([lang]) if desc != None: desc = desc.text else: d... | 26,655 |
def __init__ (self, page, i, opt): """ Constructor. """ self.page = page self.opt = opt typeString = opt.type if opt.valid: typeString = typeString+" ["+ \ reduce(lambda x,y: x+','+y, map(str,opt.valid))+"]" # a check button with an option description desc = opt.getDesc([lang]) if desc != None: desc = desc.text else: d... | def __init__ (self, page, i, opt): """ Constructor. """ self.page = page self.opt = opt typeString = opt.type if opt.valid: typeString = typeString+" ["+ \ reduce(lambda x,y: x+','+y, map(str,opt.valid))+"]" # a check button with an option description desc = opt.getDesc([lang]) if desc != None: desc = desc.text else: d... | 26,656 |
def __init__ (self, page, i, opt): """ Constructor. """ self.page = page self.opt = opt typeString = opt.type if opt.valid: typeString = typeString+" ["+ \ reduce(lambda x,y: x+','+y, map(str,opt.valid))+"]" # a check button with an option description desc = opt.getDesc([lang]) if desc != None: desc = desc.text else: d... | def __init__ (self, page, i, opt): """ Constructor. """ self.page = page self.opt = opt typeString = opt.type if opt.valid: typeString = typeString+" ["+ \ reduce(lambda x,y: x+','+y, map(str,opt.valid))+"]" # a check button with an option description desc = opt.getDesc([lang]) if desc != None: desc = desc.text else: d... | 26,657 |
def __init__ (self, page, i, opt): """ Constructor. """ self.page = page self.opt = opt typeString = opt.type if opt.valid: typeString = typeString+" ["+ \ reduce(lambda x,y: x+','+y, map(str,opt.valid))+"]" # a check button with an option description desc = opt.getDesc([lang]) if desc != None: desc = desc.text else: d... | def __init__ (self, page, i, opt): """ Constructor. """ self.page = page self.opt = opt typeString = opt.type if opt.valid: typeString = typeString+" ["+ \ reduce(lambda x,y: x+','+y, map(str,opt.valid))+"]" # a check button with an option description desc = opt.getDesc([lang]) if desc != None: desc = desc.text else: d... | 26,658 |
def initWidget (self, opt, value, valid=1): """ Initialize the option widget. | def initWidget (self, opt, value, valid=1): """ Initialize the option widget. | 26,659 |
def initWidget (self, opt, value, valid=1): """ Initialize the option widget. | def initWidget (self, opt, value, valid=1): """ Initialize the option widget. | 26,660 |
def initWidget (self, opt, value, valid=1): """ Initialize the option widget. | def initWidget (self, opt, value, valid=1): """ Initialize the option widget. | 26,661 |
def initWidget (self, opt, value, valid=1): """ Initialize the option widget. | def initWidget (self, opt, value, valid=1): """ Initialize the option widget. | 26,662 |
def initWidget (self, opt, value, valid=1): """ Initialize the option widget. | def initWidget (self, opt, value, valid=1): """ Initialize the option widget. | 26,663 |
def initWidget (self, opt, value, valid=1): """ Initialize the option widget. | def initWidget (self, opt, value, valid=1): """ Initialize the option widget. | 26,664 |
def updateWidget (self, value, valid=1): """ Update the option widget to a new value. """ active = self.check.get_active() if self.widget.__class__ == GtkToggleButton: if value: self.toggleLabel.set_text ("Yes") else: self.toggleLabel.set_text ("No") self.widget.set_active (value) elif self.widget.__class__ == GtkSpinB... | def updateWidget (self, value, valid=1): """ Update the option widget to a new value. """ active = self.check.get_active() if self.widget.__class__ == gtk.ToggleButton: if value: self.toggleLabel.set_text ("Yes") else: self.toggleLabel.set_text ("No") self.widget.set_active (value) elif self.widget.__class__ == GtkSpin... | 26,665 |
def updateWidget (self, value, valid=1): """ Update the option widget to a new value. """ active = self.check.get_active() if self.widget.__class__ == GtkToggleButton: if value: self.toggleLabel.set_text ("Yes") else: self.toggleLabel.set_text ("No") self.widget.set_active (value) elif self.widget.__class__ == GtkSpinB... | def updateWidget (self, value, valid=1): """ Update the option widget to a new value. """ active = self.check.get_active() if self.widget.__class__ == GtkToggleButton: if value: self.toggleLabel.set_text ("Yes") else: self.toggleLabel.set_text ("No") self.widget.set_active (value) elif self.widget.__class__ == gtk.Spin... | 26,666 |
def updateWidget (self, value, valid=1): """ Update the option widget to a new value. """ active = self.check.get_active() if self.widget.__class__ == GtkToggleButton: if value: self.toggleLabel.set_text ("Yes") else: self.toggleLabel.set_text ("No") self.widget.set_active (value) elif self.widget.__class__ == GtkSpinB... | def updateWidget (self, value, valid=1): """ Update the option widget to a new value. """ active = self.check.get_active() if self.widget.__class__ == GtkToggleButton: if value: self.toggleLabel.set_text ("Yes") else: self.toggleLabel.set_text ("No") self.widget.set_active (value) elif self.widget.__class__ == GtkSpinB... | 26,667 |
def getValue (self): """ Get the current value from the option widget. | def getValue (self): """ Get the current value from the option widget. | 26,668 |
def getValue (self): """ Get the current value from the option widget. | def getValue (self): """ Get the current value from the option widget. | 26,669 |
def getValue (self): """ Get the current value from the option widget. | def getValue (self): """ Get the current value from the option widget. | 26,670 |
def activateSignal (self, widget, dummy=None): """ Handler for 'widget was activated by the user'. """ if self.widget.__class__ == GtkToggleButton: value = self.widget.get_active() if value: self.toggleLabel.set_text ("Yes") else: self.toggleLabel.set_text ("No") self.page.optionModified (self) | def activateSignal (self, widget, dummy=None): """ Handler for 'widget was activated by the user'. """ if self.widget.__class__ == gtk.ToggleButton: value = self.widget.get_active() if value: self.toggleLabel.set_text ("Yes") else: self.toggleLabel.set_text ("No") self.page.optionModified (self) | 26,671 |
def validate (self): """ Validate the current value from the option widget. | def validate (self): """ Validate the current value from the option widget. | 26,672 |
def validate (self): """ Validate the current value from the option widget. | def validate (self): """ Validate the current value from the option widget. | 26,673 |
def validate (self): """ Validate the current value from the option widget. | def validate (self): """ Validate the current value from the option widget. | 26,674 |
def __init__ (self, optSection, app): """ Constructor. """ GtkScrolledWindow.__init__ (self) self.set_policy (POLICY_AUTOMATIC, POLICY_AUTOMATIC) self.set_usize (500, 200) self.optSection = optSection self.app = app self.tooltips = GtkTooltips() self.table = GtkTable (len(optSection.optList), 3) self.optLines = [] for ... | def __init__ (self, optSection, app): """ Constructor. """ gtk.ScrolledWindow.__init__ (self) self.set_policy (gtk.POLICY_AUTOMATIC, gtk.POLICY_AUTOMATIC) self.set_size_request (500, 200) self.optSection = optSection self.app = app self.tooltips = GtkTooltips() self.table = GtkTable (len(optSection.optList), 3) self.op... | 26,675 |
def __init__ (self, optSection, app): """ Constructor. """ GtkScrolledWindow.__init__ (self) self.set_policy (POLICY_AUTOMATIC, POLICY_AUTOMATIC) self.set_usize (500, 200) self.optSection = optSection self.app = app self.tooltips = GtkTooltips() self.table = GtkTable (len(optSection.optList), 3) self.optLines = [] for ... | def __init__ (self, optSection, app): """ Constructor. """ GtkScrolledWindow.__init__ (self) self.set_policy (POLICY_AUTOMATIC, POLICY_AUTOMATIC) self.set_usize (500, 200) self.optSection = optSection self.app = app self.tooltips = gtk.Tooltips() self.table = gtk.Table (len(optSection.optList), 3) self.optLines = [] fo... | 26,676 |
def commit (self): """ Commit the widget settings. """ for optLine in self.optLines: name = optLine.opt.name value = optLine.getValue() if value == None and self.app.options.has_key(name): del self.app.options[name] self.app.device.config.modifiedCallback() elif value != None: if not self.app.options.has_key(name) or \... | def commit (self): """ Commit the widget settings. """ for optLine in self.optLines: name = optLine.opt.name value = optLine.getValue() if value == None and self.app.options.has_key(name): del self.app.options[name] self.app.device.config.modifiedCallback() elif value != None: if not self.app.options.has_key(name) or \... | 26,677 |
def __init__ (self, driver, app): """ Constructor. """ GtkScrolledWindow.__init__ (self) self.set_policy (POLICY_AUTOMATIC, POLICY_AUTOMATIC) self.app = app # copy options (dict function does not exist in Python 2.1 :( ) self.opts = {} for name,val in app.options.items(): self.opts[name] = val # remove all options know... | def __init__ (self, driver, app): """ Constructor. """ gtk.ScrolledWindow.__init__ (self) self.set_policy (gtk.POLICY_AUTOMATIC, gtk.POLICY_AUTOMATIC) self.app = app # copy options (dict function does not exist in Python 2.1 :( ) self.opts = {} for name,val in app.options.items(): self.opts[name] = val # remove all opt... | 26,678 |
def __init__ (self, driver, app): """ Constructor. """ GtkScrolledWindow.__init__ (self) self.set_policy (POLICY_AUTOMATIC, POLICY_AUTOMATIC) self.app = app # copy options (dict function does not exist in Python 2.1 :( ) self.opts = {} for name,val in app.options.items(): self.opts[name] = val # remove all options know... | def __init__ (self, driver, app): """ Constructor. """ GtkScrolledWindow.__init__ (self) self.set_policy (POLICY_AUTOMATIC, POLICY_AUTOMATIC) self.app = app # copy options (dict function does not exist in Python 2.1 :( ) self.opts = {} for name,val in app.options.items(): self.opts[name] = val # remove all options know... | 26,679 |
def __init__ (self, driver, app): """ Constructor. """ GtkScrolledWindow.__init__ (self) self.set_policy (POLICY_AUTOMATIC, POLICY_AUTOMATIC) self.app = app # copy options (dict function does not exist in Python 2.1 :( ) self.opts = {} for name,val in app.options.items(): self.opts[name] = val # remove all options know... | def __init__ (self, driver, app): """ Constructor. """ GtkScrolledWindow.__init__ (self) self.set_policy (POLICY_AUTOMATIC, POLICY_AUTOMATIC) self.app = app # copy options (dict function does not exist in Python 2.1 :( ) self.opts = {} for name,val in app.options.items(): self.opts[name] = val # remove all options know... | 26,680 |
def __init__ (self, driver, app): """ Constructor. """ GtkScrolledWindow.__init__ (self) self.set_policy (POLICY_AUTOMATIC, POLICY_AUTOMATIC) self.app = app # copy options (dict function does not exist in Python 2.1 :( ) self.opts = {} for name,val in app.options.items(): self.opts[name] = val # remove all options know... | def __init__ (self, driver, app): """ Constructor. """ GtkScrolledWindow.__init__ (self) self.set_policy (POLICY_AUTOMATIC, POLICY_AUTOMATIC) self.app = app # copy options (dict function does not exist in Python 2.1 :( ) self.opts = {} for name,val in app.options.items(): self.opts[name] = val # remove all options know... | 26,681 |
def __init__ (self, driver, app): """ Constructor. """ GtkScrolledWindow.__init__ (self) self.set_policy (POLICY_AUTOMATIC, POLICY_AUTOMATIC) self.app = app # copy options (dict function does not exist in Python 2.1 :( ) self.opts = {} for name,val in app.options.items(): self.opts[name] = val # remove all options know... | def __init__ (self, driver, app): """ Constructor. """ GtkScrolledWindow.__init__ (self) self.set_policy (POLICY_AUTOMATIC, POLICY_AUTOMATIC) self.app = app # copy options (dict function does not exist in Python 2.1 :( ) self.opts = {} for name,val in app.options.items(): self.opts[name] = val # remove all options know... | 26,682 |
def removeSelection (self, widget): """ Remove the selected items from the list and app config. """ for row in self.list.selection: name = self.list.get_text (row, 0) del self.app.options[name] self.list.remove (row) self.app.device.config.modifiedCallback() | def removeSelection (self, widget): """ Remove the selected items from the list and app config. """ for row in self.list.selection: name = self.list.get_text (row, 0) del self.app.options[name] self.list.remove (row) self.app.device.config.modifiedCallback() | 26,683 |
def __init__ (self, driver, app): """ Constructor. """ GtkFrame.__init__ (self, "Application: " + app.name) self.driver = driver self.app = app table = GtkTable(2, 2) execLabel = GtkLabel ("Executable:") execLabel.show() table.attach (execLabel, 0, 1, 0, 1, 0, 0, 5, 5) self.execEntry = GtkEntry() if app.executable != N... | def __init__ (self, driver, app): """ Constructor. """ gtk.Frame.__init__ (self, "Application: " + app.name) self.driver = driver self.app = app table = GtkTable(2, 2) execLabel = GtkLabel ("Executable:") execLabel.show() table.attach (execLabel, 0, 1, 0, 1, 0, 0, 5, 5) self.execEntry = GtkEntry() if app.executable != ... | 26,684 |
def __init__ (self, driver, app): """ Constructor. """ GtkFrame.__init__ (self, "Application: " + app.name) self.driver = driver self.app = app table = GtkTable(2, 2) execLabel = GtkLabel ("Executable:") execLabel.show() table.attach (execLabel, 0, 1, 0, 1, 0, 0, 5, 5) self.execEntry = GtkEntry() if app.executable != N... | def __init__ (self, driver, app): """ Constructor. """ GtkFrame.__init__ (self, "Application: " + app.name) self.driver = driver self.app = app table = gtk.Table(2, 2) execLabel = gtk.Label ("Executable:") execLabel.show() table.attach (execLabel, 0, 1, 0, 1, 0, 0, 5, 5) self.execEntry = GtkEntry() if app.executable !=... | 26,685 |
def __init__ (self, driver, app): """ Constructor. """ GtkFrame.__init__ (self, "Application: " + app.name) self.driver = driver self.app = app table = GtkTable(2, 2) execLabel = GtkLabel ("Executable:") execLabel.show() table.attach (execLabel, 0, 1, 0, 1, 0, 0, 5, 5) self.execEntry = GtkEntry() if app.executable != N... | def __init__ (self, driver, app): """ Constructor. """ GtkFrame.__init__ (self, "Application: " + app.name) self.driver = driver self.app = app table = GtkTable(2, 2) execLabel = GtkLabel ("Executable:") execLabel.show() table.attach (execLabel, 0, 1, 0, 1, 0, 0, 5, 5) self.execEntry = gtk.Entry() if app.executable != ... | 26,686 |
def __init__ (self, driver, app): """ Constructor. """ GtkFrame.__init__ (self, "Application: " + app.name) self.driver = driver self.app = app table = GtkTable(2, 2) execLabel = GtkLabel ("Executable:") execLabel.show() table.attach (execLabel, 0, 1, 0, 1, 0, 0, 5, 5) self.execEntry = GtkEntry() if app.executable != N... | def __init__ (self, driver, app): """ Constructor. """ GtkFrame.__init__ (self, "Application: " + app.name) self.driver = driver self.app = app table = GtkTable(2, 2) execLabel = GtkLabel ("Executable:") execLabel.show() table.attach (execLabel, 0, 1, 0, 1, 0, 0, 5, 5) self.execEntry = GtkEntry() if app.executable != N... | 26,687 |
def __init__ (self, driver, app): """ Constructor. """ GtkFrame.__init__ (self, "Application: " + app.name) self.driver = driver self.app = app table = GtkTable(2, 2) execLabel = GtkLabel ("Executable:") execLabel.show() table.attach (execLabel, 0, 1, 0, 1, 0, 0, 5, 5) self.execEntry = GtkEntry() if app.executable != N... | def __init__ (self, driver, app): """ Constructor. """ GtkFrame.__init__ (self, "Application: " + app.name) self.driver = driver self.app = app table = GtkTable(2, 2) execLabel = GtkLabel ("Executable:") execLabel.show() table.attach (execLabel, 0, 1, 0, 1, 0, 0, 5, 5) self.execEntry = GtkEntry() if app.executable != N... | 26,688 |
def __init__ (self, driver, app): """ Constructor. """ GtkFrame.__init__ (self, "Application: " + app.name) self.driver = driver self.app = app table = GtkTable(2, 2) execLabel = GtkLabel ("Executable:") execLabel.show() table.attach (execLabel, 0, 1, 0, 1, 0, 0, 5, 5) self.execEntry = GtkEntry() if app.executable != N... | def __init__ (self, driver, app): """ Constructor. """ GtkFrame.__init__ (self, "Application: " + app.name) self.driver = driver self.app = app table = GtkTable(2, 2) execLabel = GtkLabel ("Executable:") execLabel.show() table.attach (execLabel, 0, 1, 0, 1, 0, 0, 5, 5) self.execEntry = GtkEntry() if app.executable != N... | 26,689 |
def __init__ (self, driver, app): """ Constructor. """ GtkFrame.__init__ (self, "Application: " + app.name) self.driver = driver self.app = app table = GtkTable(2, 2) execLabel = GtkLabel ("Executable:") execLabel.show() table.attach (execLabel, 0, 1, 0, 1, 0, 0, 5, 5) self.execEntry = GtkEntry() if app.executable != N... | def __init__ (self, driver, app): """ Constructor. """ GtkFrame.__init__ (self, "Application: " + app.name) self.driver = driver self.app = app table = GtkTable(2, 2) execLabel = GtkLabel ("Executable:") execLabel.show() table.attach (execLabel, 0, 1, 0, 1, 0, 0, 5, 5) self.execEntry = GtkEntry() if app.executable != N... | 26,690 |
def __init__ (self, driver, app): """ Constructor. """ GtkFrame.__init__ (self, "Application: " + app.name) self.driver = driver self.app = app table = GtkTable(2, 2) execLabel = GtkLabel ("Executable:") execLabel.show() table.attach (execLabel, 0, 1, 0, 1, 0, 0, 5, 5) self.execEntry = GtkEntry() if app.executable != N... | def __init__ (self, driver, app): """ Constructor. """ GtkFrame.__init__ (self, "Application: " + app.name) self.driver = driver self.app = app table = GtkTable(2, 2) execLabel = GtkLabel ("Executable:") execLabel.show() table.attach (execLabel, 0, 1, 0, 1, 0, 0, 5, 5) self.execEntry = GtkEntry() if app.executable != N... | 26,691 |
def validate (self): """ Validate the configuration. | def validate (self): """ Validate the configuration. | 26,692 |
def validate (self): """ Validate the configuration. | def validate (self): """ Validate the configuration. | 26,693 |
def renameApp (self): """ Change the application name. """ self.set_label ("Application: " + self.app.name) | def renameApp (self): """ Change the application name. """ self.set_label ("Application: " + self.app.name) | 26,694 |
def __init__ (self, title, callback): GtkDialog.__init__ (self) self.set_transient_for (mainWindow) self.set_title (title) self.callback = callback ok = GtkButton ("OK") ok.set_flags (CAN_DEFAULT) ok.connect ("clicked", self.okSignal) ok.show() self.action_area.pack_start (ok, TRUE, FALSE, 10) cancel = GtkButton ("Canc... | def __init__ (self, title, callback): gtk.Dialog.__init__ (self) self.set_transient_for (mainWindow) self.set_title (title) self.callback = callback ok = GtkButton ("OK") ok.set_flags (CAN_DEFAULT) ok.connect ("clicked", self.okSignal) ok.show() self.action_area.pack_start (ok, TRUE, FALSE, 10) cancel = GtkButton ("Can... | 26,695 |
def __init__ (self, title, callback): GtkDialog.__init__ (self) self.set_transient_for (mainWindow) self.set_title (title) self.callback = callback ok = GtkButton ("OK") ok.set_flags (CAN_DEFAULT) ok.connect ("clicked", self.okSignal) ok.show() self.action_area.pack_start (ok, TRUE, FALSE, 10) cancel = GtkButton ("Canc... | def __init__ (self, title, callback): GtkDialog.__init__ (self) self.set_transient_for (mainWindow) self.set_title (title) self.callback = callback ok = gtk.Button ("OK") ok.set_flags (CAN_DEFAULT) ok.connect ("clicked", self.okSignal) ok.show() self.action_area.pack_start (ok, TRUE, FALSE, 10) cancel = GtkButton ("Can... | 26,696 |
def __init__ (self, title, callback): GtkDialog.__init__ (self) self.set_transient_for (mainWindow) self.set_title (title) self.callback = callback ok = GtkButton ("OK") ok.set_flags (CAN_DEFAULT) ok.connect ("clicked", self.okSignal) ok.show() self.action_area.pack_start (ok, TRUE, FALSE, 10) cancel = GtkButton ("Canc... | def __init__ (self, title, callback): GtkDialog.__init__ (self) self.set_transient_for (mainWindow) self.set_title (title) self.callback = callback ok = GtkButton ("OK") ok.set_flags (CAN_DEFAULT) ok.connect ("clicked", self.okSignal) ok.show() self.action_area.pack_start (ok, TRUE, FALSE, 10) cancel = gtk.Button ("Can... | 26,697 |
def __init__ (self, title, callback, name, data): BasicDialog.__init__ (self, title, callback) self.data = data hbox = GtkHBox() label = GtkLabel ("Name:") label.show() hbox.pack_start (label, TRUE, TRUE, 10) self.entry = GtkEntry() self.entry.set_text (name) self.entry.select_region (0, len(name)) self.entry.connect (... | def __init__ (self, title, callback, name, data): BasicDialog.__init__ (self, title, callback) self.data = data hbox = gtk.HBox() label = gtk.Label ("Name:") label.show() hbox.pack_start (label, TRUE, TRUE, 10) self.entry = GtkEntry() self.entry.set_text (name) self.entry.select_region (0, len(name)) self.entry.connect... | 26,698 |
def __init__ (self, title, callback, name, data): BasicDialog.__init__ (self, title, callback) self.data = data hbox = GtkHBox() label = GtkLabel ("Name:") label.show() hbox.pack_start (label, TRUE, TRUE, 10) self.entry = GtkEntry() self.entry.set_text (name) self.entry.select_region (0, len(name)) self.entry.connect (... | def __init__ (self, title, callback, name, data): BasicDialog.__init__ (self, title, callback) self.data = data hbox = GtkHBox() label = GtkLabel ("Name:") label.show() hbox.pack_start (label, TRUE, TRUE, 10) self.entry = gtk.Entry() self.entry.set_text (name) self.entry.select_region (0, len(name)) self.entry.connect ... | 26,699 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.