kkaz (1) [Avatar] Offline
#1
Hi,

I do not know too much about Python and I just need to modify a single script.
I have a bunch of tk windows. I know their IDs.
Now, I want to use focus() method for some of them, i.e. run w.focus()
My question is - how to find (get, select...) window w knowing its ID?

Thanks in advance,
Krzysztof
woooee (10) [Avatar] Offline
#2
Re: how to select window knowing its ID?
w.focus_set() is possibly what you want to use http://effbot.org/tkinterbook/tkinter-events-and-bindings.htm You should define "window" specifically, i.e. is it a Toplevel, Frame, Entry, etc.

Message was edited by:
woooee