Byte wrote: > Hi, I'm using the "Learning to Program" GUI tutorial on > http://www.freenetpages.co.uk/hp/alan.gauld/ > and am trying to write my first GUI. However, the code the tutorial > gives for starting by making a window: > > > import Tkinter > > top = Tkinter.Tk() > > dir(top) > > Does not work. The Python interpreter does not complain about anything, > but the window the tutorial promises will apperar will not. I'm using > Python 2.4.2 and the Eric 3.7.0 IDE on Ubuntu 5.10. Anybody know what > to do?
You have to call top.mainloop() for it work. What is dir(), btw? Is it a class for creating the application? -- http://mail.python.org/mailman/listinfo/python-list