def __init__(self, plugin, window): '''Constructor @param plugin: the plugin object to which this extension belongs @param window: the C{Gtk.Window} being extended ''' ExtensionBase.__init__(self, plugin, window) self.window = window self.uistate = window.notebook.state[plugin.config_key] self._add_actions(window.uimanager) self.connectto(window, 'destroy')
def __init__(self, plugin, notebook): ExtensionBase.__init__(self, plugin, notebook) self.notebook = notebook