move the instance creation to after definition, remove dependency on window.py
This commit is contained in:
parent
d81de4569c
commit
0953fca37b
|
@ -6,11 +6,6 @@
|
||||||
from util import dbg, err
|
from util import dbg, err
|
||||||
from version import APP_NAME, APP_VERSION
|
from version import APP_NAME, APP_VERSION
|
||||||
|
|
||||||
_terminator = _Terminator()
|
|
||||||
def Terminator():
|
|
||||||
"""Return the instance"""
|
|
||||||
return(_terminator)
|
|
||||||
|
|
||||||
class _Terminator(object):
|
class _Terminator(object):
|
||||||
"""master object for the application"""
|
"""master object for the application"""
|
||||||
|
|
||||||
|
@ -26,9 +21,6 @@ class _Terminator(object):
|
||||||
self.terminals = []
|
self.terminals = []
|
||||||
self.groups = []
|
self.groups = []
|
||||||
|
|
||||||
self.window = Window(self.config)
|
|
||||||
self.windowtitle = WindowTitle()
|
|
||||||
|
|
||||||
def new_terminal(self):
|
def new_terminal(self):
|
||||||
"""Create and register a new terminal widget"""
|
"""Create and register a new terminal widget"""
|
||||||
|
|
||||||
|
@ -59,4 +51,10 @@ class _Terminator(object):
|
||||||
for group in todestroy:
|
for group in todestroy:
|
||||||
self.groups.remove(group)
|
self.groups.remove(group)
|
||||||
|
|
||||||
|
|
||||||
|
_terminator = _Terminator()
|
||||||
|
def Terminator():
|
||||||
|
"""Return the instance"""
|
||||||
|
return(_terminator)
|
||||||
|
|
||||||
# vim: set expandtab ts=4 sw=4:
|
# vim: set expandtab ts=4 sw=4:
|
||||||
|
|
Loading…
Reference in New Issue