Back to index

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

List of all members.

Public Member Functions

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

Public Attributes

 labeltext
 object
 setfunction

Static Public Attributes

 expandable = None

Detailed Description

Definition at line 60 of file ObjectBrowser.py.


Member Function Documentation

Return name of icon to be displayed normally.

Reimplemented from idlelib.TreeWidget.TreeItem.

Definition at line 29 of file ObjectBrowser.py.

00029 
00030     def GetIconName(self):
00031         if not self.IsExpandable():
            return "python"

Here is the call graph for this function:

Return label text string to display in front of text (if any).

Reimplemented from idlelib.TreeWidget.TreeItem.

Reimplemented in idlelib.StackViewer.VariablesTreeItem.

Definition at line 25 of file ObjectBrowser.py.

00025 
00026     def GetLabelText(self):
        return self.labeltext
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 list of items forming sublist.

Reimplemented from idlelib.ObjectBrowser.ObjectTreeItem.

Definition at line 63 of file ObjectBrowser.py.

00063 
00064     def GetSubList(self):
00065         sublist = ObjectTreeItem.GetSubList(self)
00066         if len(self.object.__bases__) == 1:
00067             item = make_objecttreeitem("__bases__[0] =",
00068                 self.object.__bases__[0])
00069         else:
00070             item = make_objecttreeitem("__bases__ =", self.object.__bases__)
00071         sublist.insert(0, item)
00072         return sublist

Here is the call graph for this function:

Here is the caller graph for this function:

Return text string to display.

Reimplemented from idlelib.TreeWidget.TreeItem.

Reimplemented in idlelib.StackViewer.VariablesTreeItem.

Definition at line 27 of file ObjectBrowser.py.

00027 
00028     def GetText(self):
        return myrepr.repr(self.object)
Return whether the item's text may be edited.

Reimplemented from idlelib.TreeWidget.TreeItem.

Definition at line 32 of file ObjectBrowser.py.

00032 
00033     def IsEditable(self):
        return self.setfunction is not None
Return whether there are subitems.

Reimplemented from idlelib.ObjectBrowser.ObjectTreeItem.

Definition at line 61 of file ObjectBrowser.py.

00061 
00062     def IsExpandable(self):
        return True

Here is the caller graph for this function:

def idlelib.TreeWidget.TreeItem.OnDoubleClick (   self) [inherited]
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.ObjectBrowser.ObjectTreeItem.SetText (   self,
  text 
) [inherited]
Change the item's text (if it is editable).

Reimplemented from idlelib.TreeWidget.TreeItem.

Definition at line 34 of file ObjectBrowser.py.

00034 
00035     def SetText(self, text):
00036         try:
00037             value = eval(text)
00038             self.setfunction(value)
00039         except:
00040             pass
00041         else:
            self.object = value

Member Data Documentation

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

Definition at line 322 of file TreeWidget.py.

Definition at line 22 of file ObjectBrowser.py.

Definition at line 23 of file ObjectBrowser.py.

Definition at line 24 of file ObjectBrowser.py.


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