예제 #1
0
    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')
예제 #2
0
	def __init__(self, plugin, notebook):
		ExtensionBase.__init__(self, plugin, notebook)
		self.notebook = notebook