Back to index

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

List of all members.

Public Member Functions

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

Static Public Attributes

 expandable = None

Detailed Description

Definition at line 20 of file PathBrowser.py.


Member Function Documentation

def idlelib.TreeWidget.TreeItem.GetIconName (   self) [inherited]
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."""

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

Return list of items forming sublist.

Reimplemented from idlelib.TreeWidget.TreeItem.

Definition at line 25 of file PathBrowser.py.

00025 
00026     def GetSubList(self):
00027         sublist = []
00028         for dir in sys.path:
00029             item = DirBrowserTreeItem(dir)
00030             sublist.append(item)
00031         return sublist

Here is the caller graph for this function:

Return text string to display.

Reimplemented from idlelib.TreeWidget.TreeItem.

Definition at line 22 of file PathBrowser.py.

00022 
00023     def GetText(self):
00024         return "sys.path"

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

def idlelib.TreeWidget.TreeItem.IsExpandable (   self) [inherited]
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.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

idlelib.TreeWidget.TreeItem.expandable = None [static, inherited]
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: