The following code and it's explanation doesn't seem to work: 1. >>> from Tkinter import * 2. >>> tk = Tk() 3. >>> btn = Button(tk, text="click me") 4. >>> btn.pack() In line 1, we import the contents of the Tk module, so we can use them—the most useful of these is Tk, which creates a basic window to which we can then add things. After you type in line 2, that window will suddenly appear on the screen. In line 3, we create a new Button and assign it to the variable btn. The button is created by passing the tk object as a parameter, along with a named parameter with the words ‘click me’. Nothing appears on the screen after I enter line 2...I can type in the code in the editor and double click after saving the file and it does, but not from the shell, how can that be fixed or am I doing something wrong? Thanks Doug
_______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor