summaryrefslogtreecommitdiff
path: root/portato/gui
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2009-10-15 21:20:29 +0200
committerRené 'Necoro' Neumann <necoro@necoro.net>2009-10-15 21:20:29 +0200
commit3d4e2da389013ebb61afbc4a6ec102697ff1cf5f (patch)
tree9d61b096f64fb3dff710cb82edae30e0a9778d1b /portato/gui
parent0a30d24e34493a2f56ba801facf4daba711d363e (diff)
downloadportato-3d4e2da389013ebb61afbc4a6ec102697ff1cf5f.tar.gz
portato-3d4e2da389013ebb61afbc4a6ec102697ff1cf5f.tar.bz2
portato-3d4e2da389013ebb61afbc4a6ec102697ff1cf5f.zip
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.
Diffstat (limited to 'portato/gui')
-rw-r--r--portato/gui/utils.py7
1 files changed, 3 insertions, 4 deletions
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."""