Re: [Anygui-users] Tutorial: in mswgui, click Event generates traceback (AS Python 2.2)
"Scott Prive" <[email protected]> Wed, 26 Mar 2003 13:08:54 -0500
| Newsgroups | gmane.comp.python.anygui.devel |
|---|---|
| Message-ID | <[email protected]> |
----- Original Message ----- From: "Magnus Lie Hetland" <[email protected]> To: "Scott Prive" <[email protected]> Cc: "Anygui Development" <[email protected]> Sent: Wednesday, March 26, 2003 12:03 PM Subject: Re: [Anygui-users] Tutorial: in mswgui, click Event generates traceback (AS Python 2.2) > Scott Prive <[email protected]>: > > > > The final tutorial code does not run on my system -- I get a traceback: > [snip] > > source code was the same as on the webpage, (I even did a straight > > copy->paste) > > Did you read the docs in the distribution? No; I ran the win32 installer and was not aware of any bundled docs. The first documentation I read was the Tutorial. >Event handlers have changed > since 0.1.1 (as described in the note in the tutorial). An API change is noted in the tutorial ( http://anygui.sourceforge.net/tutorial.txt ) under "7 - Handling Events", but this text isn't explicit regarding version differences. As a newcomer to GUI and event management, I can suggest alternate text (without bloat). I'll send a doc patch to devel. > > You should write it like this: > > def handler(**kwds): This worked. Thanks for your help. ------------------------------------------------------- This SF.net email is sponsored by: The Definitive IT and Networking Event. Be There! NetWorld+Interop Las Vegas 2003 -- Register today! http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en