示例#1
0
    def __init__(self):
        Destroyable.__init__(self)
        self.__defaultVisual = LogVisualJobManager()
        self.__visuals = [self.__defaultVisual]

        self.__destroying = False
        self.__jobCtxGroups = {}

        self.__logger = logging.getLogger("JobManager")
示例#2
0
 def __init__(self):
     Destroyable.__init__(self)
     self.__defaultVisual = LogVisualJobManager()
     self.__visuals = [self.__defaultVisual]
     
     self.__destroying = False
     self.__jobCtxGroups = {}
     
     self.__logger = logging.getLogger("JobManager")
示例#3
0
    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()
示例#4
0
    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")
示例#5
0
文件: Ux.py 项目: tReMaker/PFS
    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)
示例#6
0
 def __init__(self, imgCache):
     threading.Thread.__init__(self, name="ScaleThread")
     Destroyable.__init__(self)
     self.imgCache = imgCache
     self.active = True
     self.queue = []
示例#7
0
 def __init__(self, imgCache):
     threading.Thread.__init__(self, name="ScaleThread")
     Destroyable.__init__(self)
     self.imgCache = imgCache
     self.active = True
     self.queue = []