From: <kc1...@ya...> - 2006-07-21 19:45:35
|
Hi list, I am having trouble making the menuitem check mark to behave properly. In my resource file, both the checkable and checkd options for a particular menuitem has been set to 1. Upon startup, I want to change the check mark base on some other settings and I have code in the on_initialize method to do that. However, no matter what I do, the check mark still comes out checked. I am assuming that I am not doing this properly. The code I am using in the on_initialize method: found=False for me in self.menuBar.menus: if me.getLabel()=="MyMenuLabel": for item in me.items: if item.getLabel()=="MyMenuItem": item.checked = 0 (let say) found=True break if found: break The above code *doesn't* work. The check mark value is affected but the display is not. What's the proper way to do this? Thanks, -- John Henry |