Using the imp module

2006-10-10 Thread Claus Tondering
I understand that you can use the imp module to programmatically mimic the import xyzzy statement. But is there any way to programmatically mimic the from xyzzy import * statment? -- Claus Tondering -- http://mail.python.org/mailman/listinfo/python-list

Re: Using the imp module

2006-10-10 Thread Claus Tondering
that. -- Claus Tondering -- http://mail.python.org/mailman/listinfo/python-list

Re: Using the imp module

2006-10-10 Thread Claus Tondering
me to do that. Oops, I forgot to add that I realize that the update(vars(...)) feature works well with the imp module too. -- Claus Tondering -- http://mail.python.org/mailman/listinfo/python-list

Tkinter: Making a window disappear

2006-10-09 Thread Claus Tondering
remove the window, but obviously I am wrong. What should I do instead? -- Claus Tondering -- http://mail.python.org/mailman/listinfo/python-list

Re: Tkinter: Making a window disappear

2006-10-09 Thread Claus Tondering
I just solved the problem myself: I wrote: self.destroy() Writing self.master.destroy() instead does the trick. Sorry for the inconvenience. -- Claus Tondering -- http://mail.python.org/mailman/listinfo/python-list

Testing if an object is a function

2006-10-05 Thread Claus Tondering
that is the type of a function. -- Claus Tondering -- http://mail.python.org/mailman/listinfo/python-list

Re: Testing if an object is a function

2006-10-05 Thread Claus Tondering
Fredrik Lundh wrote: if callable(x): Perfect. Thank you. -- Claus Tondering -- http://mail.python.org/mailman/listinfo/python-list

Problems with Tkinter and threads

2006-07-17 Thread Claus Tondering
. Surprisingly, if I replace self.label1.grid_forget() with self.label1.destroy(), things work well. What can I do to call grid_forget in this event handler? -- Claus Tondering -- http://mail.python.org/mailman/listinfo/python-list

Re: Problems with Tkinter and threads

2006-07-17 Thread Claus Tondering
Paul Rubin wrote: Tkinter is simply not thread safe and generating events from another thread can trigger race conditions and who knows. Does this mean that I cannot even call the main thread's after_idle method from another thread? -- Claus Tondering -- http://mail.python.org/mailman

Re: Problems with Tkinter and threads

2006-07-17 Thread Claus Tondering
, when='tail') and things should work fine. Nice! Obviously, there are important things that I don't know about Tkinter. Unless I'm much mistaken, neither Fredrik Lundh's An Introduction to Tkinter nor John W. Shipman's Tkinter reference: a GUI for Python mentions the when='tail' option. -- Claus