RE: [Win32Lib] Passing Parameter(s) to Handler
- Posted by Matt Lewis <matthewwalkerlewis at yahoo.com> Feb 06, 2004
- 500 views
EUPHORiCK wrote: > > > Derek Parnell wrote: > > >From: "C. K. Lester" <euphoric at cklester.com> > > > > > >>Okay, back to business... How would I pass a parameter (or two), > >>say > >>a database_file_name and table_name, for the w32HClick of a > >>label? Key is, the label (and others like it) is being > >>dynamically created at runtime. > >> > >> > >Do you mean that when the label is clicked, you need to pass the > >database and table names to something? > > > Yes. Exactly. Clicking on the label should call up the particular > database from which the data can be derived/looked-up/etc... This > is why I wanted a function, as well, because I would like to be > able to return the values that get looked up! But, I'll no doubt > work around that somehow. :) Within your onClick handler, use getText(self) to find out what the text in the label is. I assume you could figure out which database, etc., you need to use from that, right? To whom do you want to return the values? I'm sure win32lib wouldn't have any use for them. :) Matt Lewis