From 3d4e2da389013ebb61afbc4a6ec102697ff1cf5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20=27Necoro=27=20Neumann?= Date: Thu, 15 Oct 2009 21:20:29 +0200 Subject: Objectified all the functional stuff in backend.__init__. Moved all the function in backend.__init__ into the SystemWrapper class. And also make loading the real system lazy. Reason: So I do not need to care about whether anything imports the system before the MainWindow is started. --- portato/gui/utils.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'portato/gui') diff --git a/portato/gui/utils.py b/portato/gui/utils.py index 8b88b23..47f6fb7 100644 --- a/portato/gui/utils.py +++ b/portato/gui/utils.py @@ -21,7 +21,7 @@ from threading import Thread import gtk # some backend things -from ..backend import flags, set_system +from ..backend import flags, system from ..helper import debug, info from ..log import set_log_level from ..constants import APP, LOCALE_DIR @@ -90,9 +90,8 @@ class Config (ConfigParser): set_log_level(level) def modify_system_config (self): - """Sets the system config. - @see: L{backend.set_system()}""" - set_system(self.get("system")) + """Sets the system config.""" + system.set_system(self.get("system")) def modify_external_configs (self): """Convenience function setting all external configs.""" -- cgit v1.2.3