Tutorial: in mswgui, click Event generates traceback (AS Python 2.2)

"Scott Prive" <[email protected]> Wed, 26 Mar 2003 12:18:49 -0500
Newsgroups gmane.comp.python.anygui.general
Message-ID <[email protected]>
The final tutorial code does not run on my system -- I get a traceback:

E:\scott>python anygui2.py
Traceback (most recent call last):
  File "G:\Python22\Lib\site-packages\anygui\backends\mswgui.py", line 498,
in _
wndproc
    return window._WM_COMMAND(hwnd, msg, wParam, lParam)
  File "G:\Python22\Lib\site-packages\anygui\backends\mswgui.py", line 379,
in _
WM_COMMAND
    child_window._WM_COMMAND(hwnd, msg, wParam, lParam)
  File "G:\Python22\Lib\site-packages\anygui\backends\mswgui.py", line 174,
in _
WM_COMMAND
    send(self, 'click')
  File "G:\Python22\Lib\site-packages\anygui\Events.py", line 105, in send
    result = handler(**args)
  File "G:\Python22\Lib\site-packages\anygui\References.py", line 73, in
__call_
_
    return self.func(*args, **kwds)
TypeError: handler() got an unexpected keyword argument 'source'
--------------------

source code was the same as on the webpage, (I even did a straight
copy->paste)

System info:
    WinXP Pro
    NO GUI toolkits installed
    ActiveState Python 2.2

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,

Scott



-------------------------------------------------------
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