Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src/main.py
diff options
context:
space:
mode:
authorTomeu Vizoso <tomeu@tomeuvizoso.net>2008-04-02 12:53:52 (GMT)
committer Tomeu Vizoso <tomeu@tomeuvizoso.net>2008-04-02 12:53:52 (GMT)
commit14f1ca9b8491dee343305066facf8e7ae24e381f (patch)
tree2a387daf635cf21c2843cd18b29bc6f72d781d87 /src/main.py
parentb8dd3afcb84f86a94c41b1e29a851515e0009690 (diff)
Make Frame, Shell and ShellModel singletons and remove all those references dragged around constructors.
Diffstat (limited to 'src/main.py')
-rw-r--r--src/main.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/main.py b/src/main.py
index e785707..940be8f 100644
--- a/src/main.py
+++ b/src/main.py
@@ -32,8 +32,7 @@ from sugar import env
from sugar import logger
from sugar.profile import get_profile
-from view.Shell import Shell
-from model.shellmodel import ShellModel
+import view.Shell
from shellservice import ShellService
from hardware import hardwaremanager
from intro import intro
@@ -139,9 +138,9 @@ def main():
print "Got Ctrl+C, continuing..."
break
- model = ShellModel()
- shell = Shell(model)
- service = ShellService(shell)
+ # TODO: move initializations from the Shell constructor to a start() method
+ shell = view.Shell.get_instance()
+ service = ShellService()
try:
gtk.main()