Fixed multi-arg appends.

This commit is contained in:
Jack Jansen 2000-03-07 23:40:13 +00:00
parent 9de988315a
commit 34d11f0670
12 changed files with 15 additions and 14 deletions

View File

@ -70,7 +70,7 @@ class ICONbrowse(FrameWork.Application):
finally:
Res.SetResLoad(1)
id, type, name = r.GetResInfo()
rv.append(id, name)
rv.append((id, name))
return rv
class ICONwindow(FrameWork.Window):

View File

@ -65,7 +65,7 @@ class PICTbrowse(FrameWork.Application):
finally:
Res.SetResLoad(1)
id, type, name = r.GetResInfo()
rv.append(id, name)
rv.append((id, name))
return rv
class PICTwindow(FrameWork.Window):

View File

@ -69,7 +69,7 @@ class PICTbrowse(FrameWork.Application):
finally:
Res.SetResLoad(1)
id, type, name = r.GetResInfo()
rv.append(id, name)
rv.append((id, name))
return rv
class PICTwindow(FrameWork.Window):

View File

@ -70,7 +70,7 @@ class CIconbrowse(FrameWork.Application):
finally:
Res.SetResLoad(1)
id, type, name = r.GetResInfo()
rv.append(id, name)
rv.append((id, name))
return rv
class CIconwindow(FrameWork.Window):

View File

@ -64,7 +64,7 @@ class PICTbrowse(FrameWork.Application):
finally:
Res.SetResLoad(1)
id, type, name = r.GetResInfo()
rv.append(id, name)
rv.append((id, name))
return rv
class PICTwindow(FrameWork.Window):

View File

@ -77,7 +77,7 @@ def readscript(file):
for i in range(len(lines)):
tp, data = parseline(lines[i])
if tp == NEWSCENE:
acts.append(actor_dict.keys(), lines[prev_act:i])
acts.append((actor_dict.keys(), lines[prev_act:i]))
prev_act = i
actor_dict = {}
elif tp == TEXT:

View File

@ -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)

View File

@ -204,7 +204,7 @@ class PythonIDE(Wapplication.Application):
title = window.GetWTitle()
if not title:
title = "<no title>"
windows.append(title, window)
windows.append((title, window))
windows.sort()
for title, window in windows:
if title == "Python Interactive": # ugly but useful hack by Joe Strout

View File

@ -490,7 +490,7 @@ class HorizontalPanes(Widget):
for panesize in panesizes:
if current:
self._gutters.append(current)
self._panesizes.append(current, current + panesize)
self._panesizes.append((current, current + panesize))
current = current + panesize
self.makepanebounds()

View File

@ -300,7 +300,7 @@ class VarBrowser(FrameWork.DialogWindow):
self.scroll(-1)
point = (0, 0)
ok, point = self.lists[0].list.LGetSelect(1, point)
self.leftover.append(point, self.lists[0].content, self.lists[0].title, self.lists[0].active)
self.leftover.append((point, self.lists[0].content, self.lists[0].title, self.lists[0].active))
for i in range(len(self.lists)-1):
point = (0, 0)
ok, point = self.lists[i+1].list.LGetSelect(1, point)
@ -331,7 +331,7 @@ class VarBrowser(FrameWork.DialogWindow):
if self.lists[-1].content <> None:
point = (0, 0)
ok, point = self.lists[-1].list.LGetSelect(1, point)
self.rightover.append(point, self.lists[-1].content, self.lists[-1].title, self.lists[-1].active )
self.rightover.append((point, self.lists[-1].content, self.lists[-1].title, self.lists[-1].active ))
for i in range(len(self.lists)-1, 0, -1):
point = (0, 0)
ok, point = self.lists[i-1].list.LGetSelect(1, point)

View File

@ -215,7 +215,7 @@ def mergecfmfiles(inputs, output):
if (tp, id) in resources_done:
continue
i.saveresto(tp, id, rfork)
resources_done.append(tp, id)
resources_done.append((tp, id))
def main():
list = []

View File

@ -494,7 +494,7 @@ class ObjectCompiler:
if not name:
self.fp.write("# XXXX %s element %s not found!!\n"%(cname, `ecode`))
else:
elist.append(name, ename)
elist.append((name, ename))
self.fp.write("%s._propdict = {\n"%cname)
for n in plist: