Re: New Tkinter windows don't get focus on OS X

2009-09-14 Thread Joshua Bronson
On Sep 11, 3:53 am, eb303 wrote: > For the OP: the problem comes from the tcl/tk level. Running a tcl > script just opening a window from the terminal shows the same > behaviour. You might want to forward the question to the tcl guys. Done: https://sourceforge.net/mailarchive/forum.php?thread_nam

Re: New Tkinter windows don't get focus on OS X

2009-09-11 Thread eb303
On Sep 11, 10:40 am, Hendrik van Rooyen wrote: > On Friday 11 September 2009 09:53:56 eb303 wrote: > > > On Sep 11, 9:14 am, Hendrik van Rooyen > > wrote: > > > look for widget.focus_force() > > > and look for widget.grab_set_global() > > > Doesn't work. BTW, forcing the focus or setting the grab

Re: New Tkinter windows don't get focus on OS X

2009-09-11 Thread Hendrik van Rooyen
On Friday 11 September 2009 09:53:56 eb303 wrote: > On Sep 11, 9:14 am, Hendrik van Rooyen > wrote: > > look for widget.focus_force() > > and look for widget.grab_set_global() > > Doesn't work. BTW, forcing the focus or setting the grab globally are > usually considered very annoying and I don't

Re: New Tkinter windows don't get focus on OS X

2009-09-11 Thread eb303
On Sep 11, 9:14 am, Hendrik van Rooyen wrote: > On Thursday 10 September 2009 18:19:09 Joshua Bronson wrote: > > > True, but it'll still be a lot less painful for me to test my app if I > > can get it to steal focus > > when launched from the command line. If anyone knows how to do this in > > Tki

Re: New Tkinter windows don't get focus on OS X

2009-09-11 Thread Hendrik van Rooyen
On Thursday 10 September 2009 18:19:09 Joshua Bronson wrote: > True, but it'll still be a lot less painful for me to test my app if I > can get it to steal focus > when launched from the command line. If anyone knows how to do this in > Tkinter, help would be much appreciated. > look for widget.f

Re: New Tkinter windows don't get focus on OS X

2009-09-10 Thread Kevin Walzer
Hi Joshua, At first I was puzzled by this, because if you run something like "open -a TextEdit", TextEdit gets the focus. But then I realized this must be because of the "open" command. Indeed, if you try running something like "/Applications/MacPorts/Python\ 2.6/IDLE.app/Contents/ MacOS/IDLE" f

Re: New Tkinter windows don't get focus on OS X

2009-09-10 Thread Joshua Bronson
Hey Kevin, Thanks for your quick reply. On Sep 10, 10:12 am, Kevin Walzer wrote: > On 9/10/09 1:27 AM, Joshua Bronson wrote: > > If you try something like: > > > $ python -m Tkinter -c 'Tkinter._test()' > > > in Terminal on OS X, you'll notice that the window that is spawned > > does not get foc

Re: New Tkinter windows don't get focus on OS X

2009-09-10 Thread Kevin Walzer
On 9/10/09 1:27 AM, Joshua Bronson wrote: If you try something like: $ python -m Tkinter -c 'Tkinter._test()' in Terminal on OS X, you'll notice that the window that is spawned does not get focus, rather focus remains in Terminal. Furthermore, if you hit Command+Tab to switch focus to the Pytho

New Tkinter windows don't get focus on OS X

2009-09-09 Thread Joshua Bronson
If you try something like: $ python -m Tkinter -c 'Tkinter._test()' in Terminal on OS X, you'll notice that the window that is spawned does not get focus, rather focus remains in Terminal. Furthermore, if you hit Command+Tab to switch focus to the Python process, you'll notice that for some reaso