Tkinter and dialogs
Marc 'BlackJack' Rintsch
bj_666 at gmx.net
Thu Jul 6 04:45:17 EDT 2006
In <44ac4a4c$1 at usenet01.boi.hp.com>, dwelch91 wrote:
> When I run this (Ubuntu 6.06), I get no windows, not even the root Tk one.
>
> Any ideas???
>
> […]
>
> global root
> root = Tk()
> root.after_idle(show_ui)
> root.mainloop()
What is this `after_idle()` call supposed to do? The main loop isn't
running yet. If you just call `show_ui()` you should get some windows.
The ``global`` is unnecessary by the way. It even generates a warning:
test.py:0: SyntaxWarning: name 'root' is assigned to before global
declaration
Ciao,
Marc 'BlackJack' Rintsch
More information about the Python-list
mailing list