Python/Tkinter - problem with "wm_attributes"

Jason Harper JasonHarper at pobox.com
Sun Mar 14 13:40:22 EST 2004


george wrote:
> #################################
> # topmost.pyw
> from Tkinter import *
> root = Tk()
> root.wm_attributes("-topmost", 1)
> root.mainloop()
> #################################

This seems to work better if you do:

root.wait_visibility(root)

before the wm_attributes call.  I have no idea why the window never
appears without it.
	Jason Harper



More information about the Python-list mailing list