Reputation: 266
I have searched and could not find any solution ; sorry for this newbie question and if I wrote it in wrong place.
I have written this simple code to run python and try to run in terminal but I have seen nothing show up. by the way in terminal screen nothing happens;it seems program is running but there should be a window popup but nothing. what am I missing ?
import sys
sys.path.append("\\usr\lib\python2.7\dist-packages")
import gtk
class PyApp(gtk.Window):
def _init_(self):
super(PyApp.self)._init_()
self.set_default_size(640,480)
self.set_title("PyGTK")
self.show_all()
PyApp()
gtk.main()
Upvotes: 0
Views: 54
Reputation: 978
import sys
sys.path.append("\\usr\lib\python2.7\dist-packages")
import gtk
class PyApp(gtk.Window):
def __init__(self):
gtk.Window.__init__(self)
self.set_default_size(640,480)
self.set_title("PyGTK")
self.show_all()
PyApp()
gtk.main()
Upvotes: 1