Re: Pythoncard-users Digest, Vol 20, Issue 1
John Henry <[email protected]> Sun, 6 Jan 2008 16:00:48 -0800 (PST)
| Newsgroups | gmane.comp.python.pythoncard |
|---|---|
| Message-ID | <[email protected]> |
You can pass a None down. As I said before, as long as you are not using more advance form of doing things, you should be ok. Be careful about calling events from on_initialize because the components might not have been created yet. --- Tony Cappellini <[email protected]> wrote: > Where do you get the event object from, for an event > that hasn't occurred? > These are automatically passed to the handler by > pythoncard. > But, we cannot cal an event handler without passing > an event object. > > >> def on_button1_mouseClick(self, >>>>> event > <<<<<<<): > >> self.on_button2_mouseClick(event) > > >>If that's all you want to do, then it's simply. > Just > >>make a call to that event handler. > > >>For instance: > > >> def on_button1_mouseClick(self, event): > >> self.on_button2_mouseClick(event) > -- John Henry ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/