Back to index

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

List of all members.

Public Member Functions

def GetText
def GetLabelText
def IsExpandable
def keys
def GetSubList
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 97 of file StackViewer.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.ObjectBrowser.ObjectTreeItem.

Definition at line 102 of file StackViewer.py.

00102 
00103     def GetLabelText(self):
00104         return None

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 111 of file StackViewer.py.

00111 
00112     def GetSubList(self):
00113         sublist = []
00114         for key in self.keys():
00115             try:
00116                 value = self.object[key]
00117             except KeyError:
00118                 continue
00119             def setfunction(value, key=key, object=self.object):
00120                 object[key] = value
00121             item = make_objecttreeitem(key + " =", value, setfunction)
00122             sublist.append(item)
00123         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.ObjectBrowser.ObjectTreeItem.

Definition at line 99 of file StackViewer.py.

00099 
00100     def GetText(self):
00101         return self.labeltext

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 105 of file StackViewer.py.

00105 
00106     def IsExpandable(self):
00107         return len(self.object) > 0

Here is the caller graph for this function:

Definition at line 108 of file StackViewer.py.

00108 
00109     def keys(self):
00110         return list(self.object.keys())

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: