Hi,

Thus spoketh Helmut Jarausch <jarau...@igpm.rwth-aachen.de> 
unto us on Wed, 19 Jan 2011 20:41:15 +0100:


> 
> Thanks Michael. I will check the validatecommand.
> Meanwhile I've found a solution though I don't understand
> the difference:
> As I said, Data.focus_set() doesn't work but
> luckily
> Event.widget.focus_set()
> within the callback for the Data widget does work.

This sounds like a namespace problem, but it's hard to tell without an
exact code example ;)
Maybe if you try and add something like this to your <Return> handler
func:

    def on_return(event):
        print Data, event.widget, Data == event.widget
        ...

it might help you to find out what's going on.

Regards

Michael



.-.. .. ...- .   .-.. --- -. --.   .- -. -..   .--. .-. --- ... .--. . .-.

A Vulcan can no sooner be disloyal than he can exist without breathing.
                -- Kirk, "The Menagerie", stardate 3012.4
_______________________________________________
Tkinter-discuss mailing list
Tkinter-discuss@python.org
http://mail.python.org/mailman/listinfo/tkinter-discuss

Reply via email to