def __init__(self): """Initialize an :class:`Application` object.""" aeidon.Observable.__init__(self) self._delegations = {} self.clipboard = aeidon.Clipboard() self.counter = itertools.count(1) self.extension_manager = gaupol.ExtensionManager(self) self.notebook = None self.notebook_separator = None self.output_window = None self.pages = [] self.pattern = "" self.player = None self.player_box = None self.player_toolbar = None self.recent_manager = Gtk.RecentManager.get_default() self.replacement = "" self.seekbar = None self.statuslabel = None self.uim = None self.volume_button = None self.window = None self.x_clipboard = None self._init_delegations() self._init_gui() self.extension_manager.find_extensions() self.extension_manager.setup_extensions() self.update_gui() self.window.show()
def setup_method(self, method): gaupol.conf.path = aeidon.temp.create(".conf") self.manager = gaupol.ExtensionManager(self.new_application()) gaupol.conf.extensions.active = ["bookmarks", "none"] self.manager.find_extensions() self.manager.setup_extensions()