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

2009-09-14 Thread Joshua Bronson
On Sep 11, 3:53 am, eb303 eric.bru...@pragmadev.com 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:

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

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 hend...@microcorp.co.za 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

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 hend...@microcorp.co.za 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

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 hend...@microcorp.co.za wrote: On Friday 11 September 2009 09:53:56 eb303 wrote: On Sep 11, 9:14 am, Hendrik van Rooyen hend...@microcorp.co.za wrote: look for widget.focus_force() and look for widget.grab_set_global() Doesn't work. BTW,

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

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 k...@codebykevin.com 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

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 focus

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