Re: [Tkinter-discuss] Returning control from a toplevel window

2010-04-29 Thread Michael Lange
Hi, On Wed, 28 Apr 2010 14:37:18 -0700 Guido Carballo-Guerrero wrote: > Michael, Wayne; > > I'm sorry, I just found my problem. Was something dumb: > > L1.config(image = photo1) > L1.image = image1_2 > > This was the problem. I should had: > > L1.config(image = photo1) > L1.image = photo1 >

Re: [Tkinter-discuss] Returning control from a toplevel window

2010-04-29 Thread Michael Lange
Hi, On Wed, 28 Apr 2010 14:21:21 -0700 Guido Carballo-Guerrero wrote: > > Wayne, Michael; > > This is a sample code that shows what I'm doing. As you can see, even > if I don't have a while loop, the picture is not being shown. Am I > missing something? What is wrong with my code that I can't

Re: [Tkinter-discuss] Returning control from a toplevel window

2010-04-28 Thread Guido Carballo-Guerrero
Michael, Wayne; I'm sorry, I just found my problem. Was something dumb: L1.config(image = photo1) L1.image = image1_2 This was the problem. I should had: L1.config(image = photo1) L1.image = photo1 Now it's working as expected. Thank you very much any way for your help, really appreciated.

Re: [Tkinter-discuss] Returning control from a toplevel window

2010-04-28 Thread Guido Carballo-Guerrero
Wayne, Michael; This is a sample code that shows what I'm doing. As you can see, even if I don't have a while loop, the picture is not being shown. Am I missing something? What is wrong with my code that I can't open and show the picture in the new Toplevel window? Guido >The second call to

Re: [Tkinter-discuss] Returning control from a toplevel

2010-04-28 Thread Wayne Werner
On Wed, Apr 28, 2010 at 1:32 PM, Michael Lange wrote: > That's a lot of questions :) > Maybe one of the gurus here can explain better than me why exactly > there must not be more than one mainloop. I think the problem with your > stopped while loop happens because the mainloop() does not return u

Re: [Tkinter-discuss] Returning control from a toplevel

2010-04-28 Thread Michael Lange
Hi, On Wed, 28 Apr 2010 09:38:52 -0700 Guido Carballo-Guerrero wrote: > Michael; > > What I did to solve the problem, was put the while loop inside of a > function, so when I'm exiting the toplevel windows, I call that > function, in that way I get back into the while loop. Is there a > problem

Re: [Tkinter-discuss] Returning control from a toplevel window

2010-04-28 Thread Guido Carballo-Guerrero
: Re: [Tkinter-discuss] Returning control from a toplevel > window >Message-ID: <20100428095935.b1603a90.klappn...@web.de> >Content-Type: text/plain; charset=US-ASCII > >Hi, > >On Tue, 27 Apr 2010 15:44:39 -0700 >Guido Carballo-Guerrero wrote: > >> How can

Re: [Tkinter-discuss] Returning control from a toplevel

2010-04-28 Thread Guido Carballo-Guerrero
Michael; What I did to solve the problem, was put the while loop inside of a function, so when I'm exiting the toplevel windows, I call that function, in that way I get back into the while loop. Is there a problem with this? What is the problem of calling the mainloop in the various windows? Wh

Re: [Tkinter-discuss] Returning control from a toplevel window

2010-04-28 Thread Michael Lange
Hi, On Tue, 27 Apr 2010 15:44:39 -0700 Guido Carballo-Guerrero wrote: > How can I get back into a while loop if I go to a new pop-up toplevel > window, that is created when I press one button. > > I'm attaching a sample of the code that I'm trying to make. The > problem that I have is that afte

[Tkinter-discuss] Returning control from a toplevel window

2010-04-27 Thread Guido Carballo-Guerrero
How can I get back into a while loop if I go to a new pop-up toplevel window, that is created when I press one button. I'm attaching a sample of the code that I'm trying to make. The problem that I have is that after the button is press and the new toplevel window, what ever is inside of the wh