2009-08-19 00:04:37 +00:00
|
|
|
#!/usr/bin/python
|
|
|
|
|
|
|
|
import gtk
|
|
|
|
|
|
|
|
from newterminator import Terminator
|
|
|
|
from window import Window
|
2009-11-25 00:37:29 +00:00
|
|
|
from factory import Factory
|
2009-08-19 00:04:37 +00:00
|
|
|
|
2009-09-04 19:12:04 +00:00
|
|
|
def on_window_destroyed(widget):
|
|
|
|
"""Window destroyed, so exit"""
|
|
|
|
gtk.main_quit()
|
|
|
|
|
2009-11-25 00:37:29 +00:00
|
|
|
maker = Factory()
|
2009-08-19 00:04:37 +00:00
|
|
|
window = Window()
|
|
|
|
foo = Terminator()
|
2009-11-25 00:37:29 +00:00
|
|
|
term = maker.make('Terminal')
|
2009-09-02 22:17:54 +00:00
|
|
|
foo.register_terminal(term)
|
2009-08-19 00:04:37 +00:00
|
|
|
|
|
|
|
window.add(term)
|
|
|
|
window.show()
|
2009-10-27 23:23:59 +00:00
|
|
|
term.spawn_child()
|
2009-08-19 00:04:37 +00:00
|
|
|
|
2009-09-04 19:12:04 +00:00
|
|
|
window.connect("destroy", on_window_destroyed)
|
|
|
|
|
2009-12-23 16:40:54 +00:00
|
|
|
try:
|
|
|
|
gtk.main()
|
|
|
|
except KeyboardInterrupt:
|
|
|
|
pass
|