Back to index

python3.2  3.2.2
Public Member Functions | Public Attributes | Static Public Attributes
idlelib.ClassBrowser.MethodBrowserTreeItem Class Reference
Inheritance diagram for idlelib.ClassBrowser.MethodBrowserTreeItem:
Inheritance graph
[legend]
Collaboration diagram for idlelib.ClassBrowser.MethodBrowserTreeItem:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def GetText
def GetIconName
def IsExpandable
def OnDoubleClick
def GetLabelText
def IsEditable
def SetText
def GetSelectedIconName
def GetSubList

Public Attributes

 name
 cl
 file

Static Public Attributes

 expandable = None

Detailed Description

Definition at line 183 of file ClassBrowser.py.


Constructor & Destructor Documentation

def idlelib.ClassBrowser.MethodBrowserTreeItem.__init__ (   self,
  name,
  cl,
  file 
)

Definition at line 185 of file ClassBrowser.py.

00185 
00186     def __init__(self, name, cl, file):
00187         self.name = name
00188         self.cl = cl
00189         self.file = file

Here is the caller graph for this function:


Member Function Documentation

Return name of icon to be displayed normally.

Reimplemented from idlelib.TreeWidget.TreeItem.

Definition at line 193 of file ClassBrowser.py.

00193 
00194     def GetIconName(self):
00195         return "python" # XXX

def idlelib.TreeWidget.TreeItem.GetLabelText (   self) [inherited]
Return label text string to display in front of text (if any).

Reimplemented in idlelib.StackViewer.VariablesTreeItem, and idlelib.ObjectBrowser.ObjectTreeItem.

Definition at line 319 of file TreeWidget.py.

00319 
00320     def GetLabelText(self):
00321         """Return label text string to display in front of text (if any)."""

Return name of icon to be displayed when selected.

Definition at line 352 of file TreeWidget.py.

00352 
00353     def GetSelectedIconName(self):
00354         """Return name of icon to be displayed when selected."""

def idlelib.TreeWidget.TreeItem.GetSubList (   self) [inherited]
Return text string to display.

Reimplemented from idlelib.TreeWidget.TreeItem.

Definition at line 190 of file ClassBrowser.py.

00190 
00191     def GetText(self):
00192         return "def " + self.name + "(...)"

def idlelib.TreeWidget.TreeItem.IsEditable (   self) [inherited]
Return whether the item's text may be edited.

Reimplemented in idlelib.TreeWidget.FileTreeItem, and idlelib.ObjectBrowser.ObjectTreeItem.

Definition at line 343 of file TreeWidget.py.

00343 
00344     def IsEditable(self):
00345         """Return whether the item's text may be edited."""

Return whether there are subitems.

Reimplemented from idlelib.TreeWidget.TreeItem.

Definition at line 196 of file ClassBrowser.py.

00196 
00197     def IsExpandable(self):
00198         return 0

Here is the caller graph for this function:

Called on a double-click on the item.

Reimplemented from idlelib.TreeWidget.TreeItem.

Definition at line 199 of file ClassBrowser.py.

00199 
00200     def OnDoubleClick(self):
00201         if not os.path.exists(self.file):
00202             return
00203         edit = PyShell.flist.open(self.file)
00204         edit.gotoline(self.cl.methods[self.name])

def idlelib.TreeWidget.TreeItem.SetText (   self,
  text 
) [inherited]
Change the item's text (if it is editable).

Reimplemented in idlelib.TreeWidget.FileTreeItem, and idlelib.ObjectBrowser.ObjectTreeItem.

Definition at line 346 of file TreeWidget.py.

00346 
00347     def SetText(self, text):
00348         """Change the item's text (if it is editable)."""


Member Data Documentation

Definition at line 187 of file ClassBrowser.py.

idlelib.TreeWidget.TreeItem.expandable = None [static, inherited]
Do not override!  Called by TreeNode.

Definition at line 322 of file TreeWidget.py.

Definition at line 188 of file ClassBrowser.py.

Definition at line 186 of file ClassBrowser.py.


The documentation for this class was generated from the following file: