Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- # example base.py
- import pygtk
- pygtk.require('2.0')
- import gtk
- class Base:
- def __init__(self):
- self.window = gtk.Window(gtk.WINDOW_TOPLEVEL)
- self.window.connect("destroy", self.destroy)
- self.window.show()
- def destroy(self, widget, data=None):
- gtk.main_quit()
- def main(self):
- gtk.main()
- print(__name__)
- if __name__ == "__main__":
- base = Base()
- base.main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement