Re: tkinter destroy()

2005-04-05 Thread [EMAIL PROTECTED]
Macs: "if we follow your advice we should do: immagine_1a = PhotoImage() instead, but it doesn't work. why? " Images are a special case. You need to create an object instance of them through the self. construction or else Tkinter seems to forget about them within a couple of lin

Re: tkinter destroy()

2005-04-01 Thread max(01)*
also the app seems to have too many variables and widgets defined as self objects. That isn't necessary unless they will be used outside the method they were created in (which labels and buttons usually aren't), so all you are doing is using up more memory than necessary. you are right, and at the

Re: tkinter destroy()

2005-03-31 Thread max(01)*
[EMAIL PROTECTED] wrote: Your app seems to give the right state values only if you select 'Freni a posto'. But I see you recognize that with your 'FIXME' note. also the app seems to have too many variables and widgets defined as self objects. That isn't necessary unless they will be used outside

Re: tkinter destroy()

2005-03-30 Thread [EMAIL PROTECTED]
Your app seems to give the right state values only if you select 'Freni a posto'. But I see you recognize that with your 'FIXME' note. also the app seems to have too many variables and widgets defined as self objects. That isn't necessary unless they will be used outside the method they were cr

Re: tkinter destroy()

2005-03-29 Thread max(01)*
Eric Brunel wrote: On Tue, 29 Mar 2005 10:37:10 GMT, max(01)* <[EMAIL PROTECTED]> wrote: hi people. when i create a widget, such as a toplevel window, and then i destroy it, how can i test that it has been destroyed? the problem is that even after it has been destroyed, the instance still exists an

Re: tkinter destroy()

2005-03-29 Thread Eric Brunel
On Tue, 29 Mar 2005 10:37:10 GMT, max(01)* <[EMAIL PROTECTED]> wrote: hi people. when i create a widget, such as a toplevel window, and then i destroy it, how can i test that it has been destroyed? the problem is that even after it has been destroyed, the instance still exists and has a tkinter nam

tkinter destroy()

2005-03-29 Thread max(01)*
hi people. when i create a widget, such as a toplevel window, and then i destroy it, how can i test that it has been destroyed? the problem is that even after it has been destroyed, the instance still exists and has a tkinter name, so testing for None is not feasible: >>> import Tkinter >>> fin