2009-08-19 00:04:37 +00:00
|
|
|
#!/usr/bin/python
|
|
|
|
|
|
|
|
import gtk
|
|
|
|
|
|
|
|
from newterminator import Terminator
|
|
|
|
from window import Window
|
2009-09-02 22:17:54 +00:00
|
|
|
from terminal import Terminal
|
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-08-19 00:04:37 +00:00
|
|
|
window = Window()
|
|
|
|
foo = Terminator()
|
2009-09-02 22:17:54 +00:00
|
|
|
term = Terminal()
|
|
|
|
foo.register_terminal(term)
|
2009-08-19 00:04:37 +00:00
|
|
|
|
|
|
|
window.add(term)
|
|
|
|
window.show()
|
|
|
|
|
2009-09-04 19:12:04 +00:00
|
|
|
window.connect("destroy", on_window_destroyed)
|
|
|
|
|
2009-08-19 00:04:37 +00:00
|
|
|
gtk.main()
|