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
that.
--
Claus Tondering
--
http://mail.python.org/mailman/listinfo/python-list
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
remove
the window, but obviously I am wrong.
What should I do instead?
--
Claus Tondering
--
http://mail.python.org/mailman/listinfo/python-list
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
that is the type
of a function.
--
Claus Tondering
--
http://mail.python.org/mailman/listinfo/python-list
Fredrik Lundh wrote:
if callable(x):
Perfect. Thank you.
--
Claus Tondering
--
http://mail.python.org/mailman/listinfo/python-list
.
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
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
, 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
10 matches
Mail list logo