summaryrefslogtreecommitdiffstats
path: root/Mac/Lib
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2000-03-07 23:40:13 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2000-03-07 23:40:13 (GMT)
commit34d11f0670cbfb1e72af5285b36f207f22fb99d2 (patch)
tree1cf65694823451494364f01112227d23726ee9e9 /Mac/Lib
parent9de988315a3ac8b87a9881d8d2ebf38d19671442 (diff)
downloadcpython-34d11f0670cbfb1e72af5285b36f207f22fb99d2.zip
cpython-34d11f0670cbfb1e72af5285b36f207f22fb99d2.tar.gz
cpython-34d11f0670cbfb1e72af5285b36f207f22fb99d2.tar.bz2
Fixed multi-arg appends.
Diffstat (limited to 'Mac/Lib')
-rw-r--r--Mac/Lib/FrameWork.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/Mac/Lib/FrameWork.py b/Mac/Lib/FrameWork.py
index e56679d..320f141 100644
--- a/Mac/Lib/FrameWork.py
+++ b/Mac/Lib/FrameWork.py
@@ -512,6 +512,7 @@ class Menu:
def delete(self):
self.bar.delmenu(self.id)
del self.bar.menus[self.id]
+ self.menu.DisposeMenu()
del self.bar
del self.items
del self.menu
@@ -520,7 +521,7 @@ class Menu:
def additem(self, label, shortcut=None, callback=None, kind=None):
self.menu.AppendMenu('x') # add a dummy string
- self.items.append(label, shortcut, callback, kind)
+ self.items.append((label, shortcut, callback, kind))
item = len(self.items)
self.menu.SetMenuItemText(item, label) # set the actual text
if shortcut and type(shortcut) == type(()):
@@ -547,7 +548,7 @@ class Menu:
def addseparator(self):
self.menu.AppendMenu('(-')
- self.items.append('', None, None, 'separator')
+ self.items.append(('', None, None, 'separator'))
def addsubmenu(self, label, title=''):
sub = Menu(self.bar, title, -1)