tkinter and focus...

Nicola S. stain at prigioniero.it
Wed May 30 08:05:55 CEST 2001


28 May 2001 11:07:31 GMT, Uwe Schmitt <schmitt at num.uni-sb.de> wrote:
Matthew Dixon Cowles <matt at mondoinfo.com> wrote:
>1) how can i change the order of widgets which are activated
>   by TAB ?

the order dipends by the order in wich the widgets are packed using a geometry
manager (eg. pack) in the source file.

>2) my informationwindow (as described above) appears in the
>   left upper corner of the screen, but it should appear
>   near the main-window.

you can get results with the geometry method:

offset = 50
mywidget.geometry("+%d+%d" % (parent.winfo_rootx()+offset,
	parent.winfo_rooty()+offset))

where parent is the parent widget. Change the offset as you need.
bye



More information about the Python-list mailing list