Пример #1
0
    def __init__(self, config):
        self.config = {
            "py3_config": config,
            "include_paths": [],
            "debug": False,
            "cache_timeout": 1,
            "minimum_interval": 0.1,
            "testing": True,
            "log_file": True,
            "wm": {
                "msg": "i3-msg",
                "nag": "i3-nagbar"
            },
        }
        self.events_thread = self.EventThread()
        self.udev_monitor = self.UdevMonitor()
        self.i3status_thread = None
        self.lock = Event()
        self.output_modules = {}
        self.running = True

        self.lock.set()

        # shared code
        common = Common(self)
        self.get_config_attribute = common.get_config_attribute
        self.report_exception = common.report_exception
Пример #2
0
    def __init__(self, config):
        self.config = {
            'py3_config': config,
            'include_paths': [],
            'debug': False,
            'cache_timeout': 1,
            'minimum_interval': 0.1,
            'testing': True,
            'log_file': True,
        }
        self.i3status_thread = None
        self.lock = Event()
        self.output_modules = {}
        self.events_thread = self.EventThread()
        self.lock.set()

        # shared code
        common = Common(self)
        self.get_config_attribute = common.get_config_attribute
        self.report_exception = common.report_exception