def __init__(self, model_controller, plugin_manager, workspace_manager, plugin_controller): FaradayUi.__init__(self, model_controller, plugin_manager, workspace_manager, plugin_controller) self._stop = False faraday.client.model.guiapi.setMainApp(self) self.event_watcher = EventWatcher() faraday.client.model.guiapi.notification_center.registerWidget( self.event_watcher)
def __init__(self, model_controller, plugin_manager, workspace_manager, plugin_controller): """Does not do much. Most of the initialization work is actually done by the run() method, as specified in FaradayUi.""" FaradayUi.__init__(self, model_controller, plugin_manager, workspace_manager, plugin_controller) Gtk.Application.__init__(self, application_id="org.infobyte.faraday", flags=Gio.ApplicationFlags.FLAGS_NONE) self.lost_connection_dialog_raised = None self.workspace_dialogs_raised = None self.loading_dialog_raised = None self.icons = os.path.join(FARADAY_CLIENT_BASE, "data", "images", "icons") faraday_icon = os.path.join(self.icons, "faraday_icon.png") self.icon = GdkPixbuf.Pixbuf.new_from_file_at_scale( faraday_icon, 16, 16, False) self.window = None self.model_controller = model_controller
def __init__(self, uiapp=FaradayUi(None, None, None, None, None)): self.uiapp = uiapp self._consumers = [] self._consumers_lock = threading.RLock() self.last_events = {}