our test starter can get away with only depending on Factory now
This commit is contained in:
parent
6d1831824a
commit
293beb2331
|
@ -1,27 +1,16 @@
|
||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
|
|
||||||
import gtk
|
import gtk
|
||||||
|
|
||||||
from newterminator import Terminator
|
|
||||||
from window import Window
|
|
||||||
from factory import Factory
|
from factory import Factory
|
||||||
|
|
||||||
def on_window_destroyed(widget):
|
|
||||||
"""Window destroyed, so exit"""
|
|
||||||
gtk.main_quit()
|
|
||||||
|
|
||||||
maker = Factory()
|
maker = Factory()
|
||||||
window = Window()
|
window = maker.make('Window')
|
||||||
foo = Terminator()
|
|
||||||
term = maker.make('Terminal')
|
term = maker.make('Terminal')
|
||||||
foo.register_terminal(term)
|
|
||||||
|
|
||||||
window.add(term)
|
window.add(term)
|
||||||
window.show()
|
window.show()
|
||||||
term.spawn_child()
|
term.spawn_child()
|
||||||
|
|
||||||
window.connect("destroy", on_window_destroyed)
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
gtk.main()
|
gtk.main()
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
|
|
Loading…
Reference in New Issue