summaryrefslogtreecommitdiffstats
path: root/Mac
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>1996-04-23 16:18:33 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>1996-04-23 16:18:33 (GMT)
commit0f6dc5b888eeb6f0d7945150daa67fefaaa60124 (patch)
treec389d10122097ced4d470dda61da2fe25f3b807c /Mac
parent782405fb7848afa7a3006741c0c3b888f42cbcf7 (diff)
downloadcpython-0f6dc5b888eeb6f0d7945150daa67fefaaa60124.zip
cpython-0f6dc5b888eeb6f0d7945150daa67fefaaa60124.tar.gz
cpython-0f6dc5b888eeb6f0d7945150daa67fefaaa60124.tar.bz2
Added MenuItem methods setstyle(), seticon(), setmark()
Diffstat (limited to 'Mac')
-rw-r--r--Mac/Lib/FrameWork.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/Mac/Lib/FrameWork.py b/Mac/Lib/FrameWork.py
index 0a7eb43..bd36334 100644
--- a/Mac/Lib/FrameWork.py
+++ b/Mac/Lib/FrameWork.py
@@ -475,6 +475,18 @@ class MenuItem:
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):