Added MenuItem methods setstyle(), seticon(), setmark()

This commit is contained in:
Jack Jansen 1996-04-23 16:18:33 +00:00
parent 782405fb78
commit 0f6dc5b888
1 changed files with 12 additions and 0 deletions

View File

@ -475,6 +475,18 @@ def enable(self, onoff):
def settext(self, text):
self.menu.menu.SetMenuItemText(self.item, text)
def setstyle(self, style):
self.menu.menu.SetItemStyle(self.item, style)
def seticon(self, icon):
self.menu.menu.SetItemIcon(self.item, icon)
def setcmd(self, cmd):
self.menu.menu.SetItemCmd(self.item, cmd)
def setmark(self, cmd):
self.menu.menu.SetItemMark(self.item, cmd)
class RadioItem(MenuItem):
def __init__(self, menu, title, shortcut=None, callback=None):