Re: Tkinter OSX and "lift"

2008-02-22 Thread Miki
Hello Eric, > >>> Tk.lift doesn't seem to work on OSX (Python 2.5.1). > There is a trick that sometimes works even for interpreted application: > > import Tkinter as tk > root = tk.Tk() > root.withdraw() > # Code building the window... > root.lift() > root.deiconify() > root.mainloop() > > This s

Re: Tkinter OSX and "lift"

2008-02-22 Thread Eric Brunel
On Thu, 21 Feb 2008 16:53:14 +0100, Kevin Walzer <[EMAIL PROTECTED]> wrote: > Miki wrote: >> Hello Kevin, >> >>> Tk.lift doesn't seem to work on OSX (Python 2.5.1). If you click on the PythonLauncher application that runs in your dock when this script is executed, the window comes into

Re: Tkinter OSX and "lift"

2008-02-21 Thread Miki
Hello Kevin, > "Lift" (which calls the Tk command "raise") doesn't work this way, at > least not under Aqua. If your application has focus, "lift" will raise > the widget being called to the top of the stacking order. However, it > will not make the application frontmost. To do this you'd have to

Re: Tkinter OSX and "lift"

2008-02-21 Thread Kevin Walzer
Miki wrote: > Hello Kevin, > >> Tk.lift doesn't seem to work on OSX (Python 2.5.1). >>> If you click on the PythonLauncher application that runs in your dock >>> when this script is executed, the window comes into focus fine. > You're right, but I want to window to be initially in focus (without >

Re: Tkinter OSX and "lift"

2008-02-21 Thread Miki
Hello Kevin, > Tk.lift doesn't seem to work on OSX (Python 2.5.1). >> If you click on the PythonLauncher application that runs in your dock >> when this script is executed, the window comes into focus fine. You're right, but I want to window to be initially in focus (without the user clicking on t

Re: Tkinter OSX and "lift"

2008-02-21 Thread Kevin Walzer
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

Tkinter OSX and "lift"

2008-02-20 Thread Miki
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 topmos