Re: [Anygui-users] Tutorial: in mswgui, click Event generates traceback (AS Python 2.2)
Magnus Lie Hetland <[email protected]> Wed, 26 Mar 2003 18:03:10 +0100
| Newsgroups | gmane.comp.python.anygui.devel |
|---|---|
| Message-ID | <[email protected]> |
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? Event handlers have changed since 0.1.1 (as described in the note in the tutorial). You should write it like this: def handler(**kwds): ... rather than def handler(event): ... when using 0.1.1. > Additionally (before sending this email), I installed wxWindows and > attempted to re-run the application. This did not help -- same error. Here I > assume because the tutorial code doesn't specify the toolkit, the "native" > UI has a higher priority than wxWindows. (If I can specify a default GUI > here, I have a potential workaround). > > thanks for any ideas, The error isn't GUI-related. You're just using a recent form of the API with an old package (which is, alas, the most recently released stable one). > Scott -- Magnus Lie Hetland "Nothing shocks me. I'm a scientist." http://hetland.org -- Indiana Jones ------------------------------------------------------- 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