[Anygui-users] Tutorial: in mswgui, click Event generates traceback (AS Python 2.2)
Brought to you by:
mlh
|
From: Scott P. <sco...@ea...> - 2003-03-26 16:58:54
|
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
|