[Tutor] binding problem

Chris Hare chare at labr.net
Thu Nov 3 05:46:57 CET 2011


I have a Listbox defined

self.list = Listbox(self.frame)

What I want to do is when the user either single clicks, double clicks, presses tab or return, move the focus to the specified field

                self.list.bind("<Button-1>", self.login_userid.focus_set())
                self.list.bind("<Double-Button-1>", self.login_userid.focus_set())
                self.list.bind("<Tab>", self.login_userid.focus_set())
                self.list.bind("<Return>", self.login_userid.focus_set())

If I can get this working, I should be able to get the other bindings to work.
Chris Hare
chare at labr.net
http://www.labr.net



More information about the Tutor mailing list