From 0f6dc5b888eeb6f0d7945150daa67fefaaa60124 Mon Sep 17 00:00:00 2001
From: Jack Jansen <jack.jansen@cwi.nl>
Date: Tue, 23 Apr 1996 16:18:33 +0000
Subject: Added MenuItem methods setstyle(), seticon(), setmark()

---
 Mac/Lib/FrameWork.py | 12 ++++++++++++
 1 file changed, 12 insertions(+)

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):
-- 
cgit v0.12

