Tkinter OSX and "lift"

Kevin Walzer kw at codebykevin.com
Thu Feb 21 08:32:15 EST 2008


Miki wrote:
> Hello,
> 
> Tk.lift doesn't seem to work on OSX (Python 2.5.1).
> The below starts OK, but the window is the behind all other windows.
> 
> from Tkinter import *
> 
> root = Tk()
> Button(root, text="OK", command=root.quit).pack()
> root.lift()
> root.mainloop()
> 
> Any ideas how to tell the window to start as the topmost window?
> 
> Thanks,
> --
> Miki <miki.tebeka at gmail.com>
> http://pythonwise.blogspot.com

If you click on the PythonLauncher application that runs in your dock 
when this script is executed, the window comes into focus fine.

-- 
Kevin Walzer
Code by Kevin
http://www.codebykevin.com



More information about the Python-list mailing list