terminator/terminatorlib/test.py

29 lines
477 B
Python
Raw Normal View History

#!/usr/bin/python
import gtk
from newterminator import Terminator
from window import Window
from factory import Factory
2009-09-04 19:12:04 +00:00
def on_window_destroyed(widget):
"""Window destroyed, so exit"""
gtk.main_quit()
maker = Factory()
window = Window()
foo = Terminator()
term = maker.make('Terminal')
foo.register_terminal(term)
window.add(term)
window.show()
term.spawn_child()
2009-09-04 19:12:04 +00:00
window.connect("destroy", on_window_destroyed)
try:
gtk.main()
except KeyboardInterrupt:
pass