|
From: Wesley P. <hw...@be...> - 2006-07-17 16:21:15
|
I am trying to enable a menu item from another menu item. I originally set a menu item enable to false and it shows up greyed out, which is good. When a user performs another menu action, the greyed out menu item is enabled. I get the following errors:
File "C:\Python24\lib\site-packages\PythonCard\menu.py", line 204, in _dispatch
handler(background, aWxEvent)
File "C:\Documents and Settings\ko22931\workspace\PCard Test\ASAmp3\ASAmp3.py", line 175, in on_main_menuSelect_Directory_select
self.components.main_menuAdd_Info.enabled=True
File "C:\Python24\lib\site-packages\PythonCard\model.py", line 77, in __getattr__
return self.data[key]
KeyError: 'main_menuAdd_Info'
Any ideas why this will not work?
|