Newbie question

Matt Gushee mgushee at havenrock.com
Sun Jun 20 12:04:35 EDT 1999


"John E. Garrott" <johnga at primenet.com> writes:

> Hans Nowak wrote:
> > 
> > On 19 Jun 99, John E. Garrott wrote:
> > 
> > > I am have a problem with the program below.
> > >
> > > The function dbs.databases() works, putting,
> > > in this case, the databases owned by myself
> > > into the listbox.  When I click on the listbox
> > > items they highlight as expected, but, apparently,
> > > list_cb() is never called.

> > >               self.frame.listbox.bind('Button-1', self.list_cb)

The Tcl/Tk binding syntax uses angle brackets to designate events. Try 
this:

               self.frame.listbox.bind('<Button-1>', self.list_cb)
                                        ^        ^

Hope this helps.

Matt Gushee
Portland, Maine, USA
mgushee at havenrock.com




More information about the Python-list mailing list