Advertisement
Guest User

Untitled

a guest
Apr 3rd, 2012
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. Ok here it is :
  2. jemoh@Hiuhu:~$ vim window.py
  3. #!/usr/bin/env/ python
  4.  
  5. import pygtk
  6. pygtk.require('2.0')
  7. import gtk
  8.  
  9. class Base:
  10. def destrpy(self,widget,data=none):
  11. gtk.main_quit()
  12.  
  13. def __init__(self):
  14. self.window = gtk.Window(gtk.WINDOW_TOPLEVEL)
  15. self.window.show()
  16. self.window.connect("destroy", self.destroy)
  17.  
  18. def main(self):
  19. gtk.main()
  20.  
  21. if __name__ == "__main__"
  22. base = Base()
  23. base.main()
  24. "window.py" 21L, 409C 1,1 All
  25. jemoh@Hiuhu:~$ chmod +x window.py
  26. jemoh@Hiuhu:~$ ./window.py
  27. bash: ./window.py: /usr/bin/env/: bad interpreter: Not a directory
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement