finally:
Res.SetResLoad(1)
id, type, name = r.GetResInfo()
- rv.append(id, name)
+ rv.append((id, name))
return rv
class ICONwindow(FrameWork.Window):
finally:
Res.SetResLoad(1)
id, type, name = r.GetResInfo()
- rv.append(id, name)
+ rv.append((id, name))
return rv
class PICTwindow(FrameWork.Window):
finally:
Res.SetResLoad(1)
id, type, name = r.GetResInfo()
- rv.append(id, name)
+ rv.append((id, name))
return rv
class PICTwindow(FrameWork.Window):
finally:
Res.SetResLoad(1)
id, type, name = r.GetResInfo()
- rv.append(id, name)
+ rv.append((id, name))
return rv
class CIconwindow(FrameWork.Window):
finally:
Res.SetResLoad(1)
id, type, name = r.GetResInfo()
- rv.append(id, name)
+ rv.append((id, name))
return rv
class PICTwindow(FrameWork.Window):
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:
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
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(()):
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)
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
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()
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)
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)
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 = []
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: