Re: [Tutor] Tinkering with Tkinter

2009-05-26 Thread Doug Reid
--- On Tue, 5/26/09, W W wrote: From: W W Subject: Re: [Tutor] Tinkering with Tkinter To: "Doug Reid" Cc: Tutor@python.org Date: Tuesday, May 26, 2009, 11:42 AM On Mon, May 25, 2009 at 7:45 PM, Doug Reid wrote: The following code and it's explanation doesn'

Re: [Tutor] Tinkering with Tkinter

2009-05-26 Thread W W
On Mon, May 25, 2009 at 7:45 PM, Doug Reid wrote: > 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 modul

Re: [Tutor] Tinkering with Tkinter

2009-05-26 Thread Alan Gauld
"Doug Reid" wrote 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, . Nothing appears on the screen after I enter line 2... A lot depends on the environment

[Tutor] Tinkering with Tkinter

2009-05-25 Thread Doug Reid
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 win