def run_qtile(): llvl = logging.DEBUG if pytest.config.getoption("--debuglog") else logging.INFO kore = xcore.XCore() try: init_log(llvl, log_path=None, log_color=False) q = QtileManager(kore, config_class(), self.display, self.sockfile) q.loop() except Exception: wpipe.send(traceback.format_exc())
def run_qtile(): kore = xcore.XCore() try: init_log(self.log_level, log_path=None, log_color=False) q = QtileManager(kore, config_class(), self.display, self.sockfile) q.loop() except Exception: wpipe.send(traceback.format_exc())
def create_manager(self, config_class): """Create a Qtile manager instance in this thread This should only be used when it is known that the manager will throw an error and the returned manager should not be started, otherwise this will likely block the thread. """ llvl = logging.DEBUG if pytest.config.getoption( "--debuglog") else logging.INFO init_log(llvl, log_path=None, log_color=False) kore = xcore.XCore() return QtileManager(kore, config_class(), self.display, self.sockfile)
def create_manager(self, config_class): """Create a Qtile manager instance in this thread This should only be used when it is known that the manager will throw an error and the returned manager should not be started, otherwise this will likely block the thread. """ init_log(self.log_level, log_path=None, log_color=False) kore = xcore.XCore() config = config_class() for attr in dir(default_config): if not hasattr(config, attr): setattr(config, attr, getattr(default_config, attr)) return QtileManager(kore, config, self.display, self.sockfile)