- Ok here it is :
- jemoh@Hiuhu:~$ vim window.py
- #!/usr/bin/env/ python
- import pygtk
- pygtk.require('2.0')
- import gtk
- class Base:
- def destrpy(self,widget,data=none):
- gtk.main_quit()
- def __init__(self):
- self.window = gtk.Window(gtk.WINDOW_TOPLEVEL)
- self.window.show()
- self.window.connect("destroy", self.destroy)
- def main(self):
- gtk.main()
- if __name__ == "__main__"
- base = Base()
- base.main()
- "window.py" 21L, 409C 1,1 All
- jemoh@Hiuhu:~$ chmod +x window.py
- jemoh@Hiuhu:~$ ./window.py
- bash: ./window.py: /usr/bin/env/: bad interpreter: Not a directory
SHARE
TWEET
Untitled
a guest
Apr 3rd, 2012
19
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
RAW Paste Data

