Re: Working with Widget after Instance loses the reference

2006-08-01 Thread Al in Dallas
John McMonagle wrote: > On Mon, 2006-07-31 at 11:15 -0700, Al in Dallas wrote: [example of "losing" a widget] > Consider the following code run in the python shell: > > >>> from Tkinter import * > >>> r = Tk() > >>> b1 = Button(r, text='test') > >>> b1.pack() > >>> b2 = Button(r, text='test2') >

Re: Working with Widget after Instance loses the reference

2006-07-31 Thread John McMonagle
On Mon, 2006-07-31 at 11:15 -0700, Al in Dallas wrote: > I made the mistake of creating an instance of a widget and assigning it > to a name I'd already used. Now, if I use root.children or > root.slaves(), I can see the "lost" widget, but can I do anything else > with the string of numbers that sh