move the instance creation to after definition, remove dependency on window.py

This commit is contained in:
Chris Jones 2009-08-11 00:20:00 +01:00
parent d81de4569c
commit 0953fca37b
1 changed files with 6 additions and 8 deletions

View File

@ -6,11 +6,6 @@
from util import dbg, err
from version import APP_NAME, APP_VERSION
_terminator = _Terminator()
def Terminator():
"""Return the instance"""
return(_terminator)
class _Terminator(object):
"""master object for the application"""
@ -26,9 +21,6 @@ class _Terminator(object):
self.terminals = []
self.groups = []
self.window = Window(self.config)
self.windowtitle = WindowTitle()
def new_terminal(self):
"""Create and register a new terminal widget"""
@ -59,4 +51,10 @@ class _Terminator(object):
for group in todestroy:
self.groups.remove(group)
_terminator = _Terminator()
def Terminator():
"""Return the instance"""
return(_terminator)
# vim: set expandtab ts=4 sw=4: