Back to index

python3.2  3.2.2
Classes | Functions | Variables
idlelib.ObjectBrowser Namespace Reference

Classes

class  ObjectTreeItem
class  ClassTreeItem
class  AtomicObjectTreeItem
class  SequenceTreeItem
class  DictTreeItem

Functions

def make_objecttreeitem
def _test

Variables

tuple myrepr = Repr()
dictionary dispatch

Function Documentation

def idlelib.ObjectBrowser._test ( ) [private]

Definition at line 124 of file ObjectBrowser.py.

00124 
00125 def _test():
00126     import sys
00127     from tkinter import Tk
00128     root = Tk()
00129     root.configure(bd=0, bg="yellow")
00130     root.focus_set()
00131     sc = ScrolledCanvas(root, bg="white", highlightthickness=0, takefocus=1)
00132     sc.frame.pack(expand=1, fill="both")
00133     item = make_objecttreeitem("sys", sys)
00134     node = TreeNode(sc.canvas, None, item)
00135     node.update()
00136     root.mainloop()

Here is the call graph for this function:

def idlelib.ObjectBrowser.make_objecttreeitem (   labeltext,
  object,
  setfunction = None 
)

Definition at line 114 of file ObjectBrowser.py.

00114 
00115 def make_objecttreeitem(labeltext, object, setfunction=None):
00116     t = type(object)
00117     if t in dispatch:
00118         c = dispatch[t]
00119     else:
00120         c = ObjectTreeItem
00121     return c(labeltext, object, setfunction)
00122 
00123 # Test script

Here is the caller graph for this function:


Variable Documentation

Initial value:
00001 {
00002     int: AtomicObjectTreeItem,
00003     float: AtomicObjectTreeItem,
00004     str: AtomicObjectTreeItem,
00005     tuple: SequenceTreeItem,
00006     list: SequenceTreeItem,
00007     dict: DictTreeItem,
00008     type: ClassTreeItem,
00009 }

Definition at line 104 of file ObjectBrowser.py.

Definition at line 16 of file ObjectBrowser.py.