def __init__(self): Destroyable.__init__(self) self.__defaultVisual = LogVisualJobManager() self.__visuals = [self.__defaultVisual] self.__destroying = False self.__jobCtxGroups = {} self.__logger = logging.getLogger("JobManager")
def __init__(self): threading.Thread.__init__(self, name="GMainLoop") Destroyable.__init__(self) self.__gMainloop = None if os.name == "nt": self._Log(logging.DEBUG, "creating GObject MainLoop") self.start()
def __init__(self): threading.Thread.__init__(self, name="GtkMainLoop") Destroyable.__init__(self) self.__gtkMainloop = None if Gtk.main_level() == 0: self._Log(logging.DEBUG, "creating gtk mainloop") self.start() else: self._Log(logging.DEBUG, "gtk mainloop is already present")
def __init__(self): Destroyable.__init__(self) self.uxAdapters = [] for modname in ("gnome", "uwp"): try: ux_module = importlib.import_module("photofilmstrip.ux." + modname) except: logging.getLogger('UxService').debug( "importing UxAdapter '%s' failed", modname, exc_info=1) continue if hasattr(ux_module, "ux_init"): try: uxAdapter = getattr(ux_module, "ux_init")() if isinstance(uxAdapter, UxAdapter): self.uxAdapters.append(uxAdapter) except: logging.getLogger('UxService').error( "initializing UxAdapter '%s' failed", ux_module, exc_info=1)
def __init__(self, imgCache): threading.Thread.__init__(self, name="ScaleThread") Destroyable.__init__(self) self.imgCache = imgCache self.active = True self.queue = []