New Tkinter windows don't get focus on OS X
eric.brunel at pragmadev.com
Fri Sep 11 10:55:22 CEST 2009
On Sep 11, 10:40 am, Hendrik van Rooyen <hend... at microcorp.co.za>
> On Friday 11 September 2009 09:53:56 eb303 wrote:
> > On Sep 11, 9:14 am, Hendrik van Rooyen <hend... at 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 annoying and I don't know any windowing system
> > or window manager honouring those.
> I have to confess I have never used the stuff - just remembered seeing it in
> the manual and pointed it out.
> What does it do?
At tcl level, focus_force() and grab_set_global() are translated as
options to the equivalents of focus_set() and grab_set() . If
these are not honoured, the options are simply ignored. That's what
seems to happen on Mac OS X. So focus_force() does the same as
focus_set(), and grab_set_global() the same as grab_set(). No use for
the OP's problem...
More information about the Python-list