Nicolas <
sl12...@gmail.com> wrote:
> Le jeudi 17 septembre 2015 22:55:13 UTC+2, nemethi a écrit :
> > Am 17.09.2015 um 18:26 schrieb Nicolas:
> > > Hi Tablelist users...
> > > a cell is displaying something....
> > > when user double-click on the cell it opens a window (a toplevel
> > > one) how can I tell to Tbalelist to lose the focus and give it to
> > > the new displayed toplevel?
> >
> > The window manager will automatically set the input focus to the
> > toplevel widget created by your chazeSeqTLinkPage procedure. What
> > you probably want is to move the input focus to some descendant of
> > that toplevel (e.g., an entry or text widget). You can achieve
> > this by invoking the focus command from within chazeSeqTLinkPage,
> > with that descendant widget as argument.
> >
> > --
> > Csaba Nemethi
http://www.nemethi.de mailto:
csaba....@t-online.de
> it' obvious that the raise command should set the focus to the new
> toplevel, but strangely it doesn't
Raising a window to the top and giving that window focus are two
separate, independent, operations.
Many window managers (i.e., ms-windows) improperly conflate the two,
such that the window that is on top is also the window that receives
focus. But the actions of broken window managers does not change the
fact that the two operations are separate and independent operations.
That is why Tk has separate commands, because the functions are
actually separate functions. If you want the window to have focus, you
use the 'focus' command. If you want to raise the window, you use the
'raise' command. If you want both, you use both.