Back to index

python3.2  3.2.2
Public Member Functions | Static Public Attributes | Private Member Functions
idlelib.TreeWidget.TreeItem Class Reference
Inheritance diagram for idlelib.TreeWidget.TreeItem:
Inheritance graph
[legend]

List of all members.

Public Member Functions

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

Static Public Attributes

 expandable = None

Private Member Functions

def _IsExpandable
def _GetSubList

Detailed Description

Abstract class representing tree items.

Methods should typically be overridden, otherwise a default action
is used.

Definition at line 304 of file TreeWidget.py.


Constructor & Destructor Documentation

Constructor.  Do whatever you need to do.

Definition at line 313 of file TreeWidget.py.

00313 
00314     def __init__(self):
00315         """Constructor.  Do whatever you need to do."""

Here is the caller graph for this function:


Member Function Documentation

def idlelib.TreeWidget.TreeItem._GetSubList (   self) [private]
Do not override!  Called by TreeNode.

Definition at line 334 of file TreeWidget.py.

00334 
00335     def _GetSubList(self):
00336         """Do not override!  Called by TreeNode."""
00337         if not self.IsExpandable():
00338             return []
00339         sublist = self.GetSubList()
00340         if not sublist:
00341             self.expandable = 0
00342         return sublist

Here is the call graph for this function:

Do not override!  Called by TreeNode.

Definition at line 324 of file TreeWidget.py.

00324 
00325     def _IsExpandable(self):
00326         """Do not override!  Called by TreeNode."""
00327         if self.expandable is None:
00328             self.expandable = self.IsExpandable()
00329         return self.expandable

Here is the call graph for this function:

Return name of icon to be displayed normally.

Reimplemented in idlelib.TreeWidget.FileTreeItem, idlelib.ClassBrowser.MethodBrowserTreeItem, idlelib.ClassBrowser.ClassBrowserTreeItem, idlelib.ClassBrowser.ModuleBrowserTreeItem, and idlelib.ObjectBrowser.ObjectTreeItem.

Definition at line 349 of file TreeWidget.py.

00349 
00350     def GetIconName(self):
00351         """Return name of icon to be displayed normally."""

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."""

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."""

Called on a double-click on the item.

Reimplemented in idlelib.ClassBrowser.MethodBrowserTreeItem, idlelib.ClassBrowser.ClassBrowserTreeItem, idlelib.StackViewer.FrameTreeItem, and idlelib.ClassBrowser.ModuleBrowserTreeItem.

Definition at line 358 of file TreeWidget.py.

00358 
00359     def OnDoubleClick(self):
00360         """Called on a double-click on the item."""
00361 
00362 
00363 # Example application

def idlelib.TreeWidget.TreeItem.SetText (   self,
  text 
)
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

Do not override!  Called by TreeNode.

Definition at line 322 of file TreeWidget.py.


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