dwelch91 wrote:
> I get no windows, not even the root Tk one.
no time to dig deeper into this right now, but the culprit is probably a
combination of this line
self.transient(parent)
and the after_idle approach to create the Dialog (Toplevel) window. the
transient call tells Tkinter to make the new dialogue window dependent
on the parent (which is the root Tk window in this case), but that
window hasn't been created yet when you get to transient, so Tk ends up
waiting for something that obviously never happens...
as a workaround, you can either remove the transient call, or insert an
explicit root.update() before the root.after_idle() call.
> root = None
> global root
> root = Tk()
unrelated to your question: "global" is used in a local scope (a
function or method) to indicate that a variable that you assign to is a
global variable. for the full story, see
http://pyref.infogami.com/naming-and-binding
</F>
--
http://mail.python.org/mailman/listinfo/python-list