[Python-checkins] r65725 - sandbox/trunk/ttk-gsoc/src/idlelib/ClassBrowser.py
guilherme.polo
python-checkins at python.org
Sun Aug 17 00:19:36 CEST 2008
Author: guilherme.polo
Date: Sun Aug 17 00:19:35 2008
New Revision: 65725
Log:
Forgot to pass flist to MethodBrowserTreeItem, resulting in methods not being possible to be directly accessed through Class Browser.
Modified:
sandbox/trunk/ttk-gsoc/src/idlelib/ClassBrowser.py
Modified: sandbox/trunk/ttk-gsoc/src/idlelib/ClassBrowser.py
==============================================================================
--- sandbox/trunk/ttk-gsoc/src/idlelib/ClassBrowser.py (original)
+++ sandbox/trunk/ttk-gsoc/src/idlelib/ClassBrowser.py Sun Aug 17 00:19:35 2008
@@ -159,7 +159,7 @@
return []
sublist = []
for name in self.listmethods():
- item = MethodBrowserTreeItem(name, self.cl, self.file)
+ item = MethodBrowserTreeItem(name, self.cl, self.file, self.flist)
sublist.append(item)
return sublist
@@ -185,10 +185,11 @@
class MethodBrowserTreeItem(TreeItem):
- def __init__(self, name, cl, file):
+ def __init__(self, name, cl, file, flist):
self.name = name
self.cl = cl
self.file = file
+ self.flist = flist
def GetText(self):
return "def " + self.name + "(...)"
More information about the Python-checkins
mailing list