On Feb 16, 2006, at 9:18 AM, Echo wrote:
How can you change a check menuitem to be checked or unchecked?
Menus have two methods:
setCheck(self, cap, unCheckOthers=True)
clearChecks(self)
You pass the caption of the menu item you want checked to setCheck,
and it checks it. By default, it also unchecks any other items; you
can change that by passing False as the second parameter. Note that
if you don't define a menu item as checkable, calling setCheck with
that items caption simply does nothing.
clearChecks() does what it says: removes checks from all items.
-- Ed Leafe
-- http://leafe.com
-- http://dabodev.com
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users