Back to index

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

List of all members.

Public Member Functions

def __init__
def close
def init
def settitle
def rootnode

Public Attributes

 name
 file
 flist
 top
 node

Detailed Description

Definition at line 22 of file ClassBrowser.py.


Constructor & Destructor Documentation

def idlelib.ClassBrowser.ClassBrowser.__init__ (   self,
  flist,
  name,
  path 
)

Definition at line 24 of file ClassBrowser.py.

00024 
00025     def __init__(self, flist, name, path):
00026         # XXX This API should change, if the file doesn't end in ".py"
00027         # XXX the code here is bogus!
00028         self.name = name
00029         self.file = os.path.join(path[0], self.name + ".py")
00030         self.init(flist)

Here is the caller graph for this function:


Member Function Documentation

def idlelib.ClassBrowser.ClassBrowser.close (   self,
  event = None 
)

Definition at line 31 of file ClassBrowser.py.

00031 
00032     def close(self, event=None):
00033         self.top.destroy()
00034         self.node.destroy()

Here is the caller graph for this function:

def idlelib.ClassBrowser.ClassBrowser.init (   self,
  flist 
)

Definition at line 35 of file ClassBrowser.py.

00035 
00036     def init(self, flist):
00037         self.flist = flist
00038         # reset pyclbr
00039         pyclbr._modules.clear()
00040         # create top
00041         self.top = top = ListedToplevel(flist.root)
00042         top.protocol("WM_DELETE_WINDOW", self.close)
00043         top.bind("<Escape>", self.close)
00044         self.settitle()
00045         top.focus_set()
00046         # create scrolled canvas
00047         theme = idleConf.GetOption('main','Theme','name')
00048         background = idleConf.GetHighlight(theme, 'normal')['background']
00049         sc = ScrolledCanvas(top, bg=background, highlightthickness=0, takefocus=1)
00050         sc.frame.pack(expand=1, fill="both")
00051         item = self.rootnode()
00052         self.node = node = TreeNode(sc.canvas, None, item)
00053         node.update()
00054         node.expand()

Here is the caller graph for this function:

Reimplemented in idlelib.PathBrowser.PathBrowser.

Definition at line 59 of file ClassBrowser.py.

00059 
00060     def rootnode(self):
00061         return ModuleBrowserTreeItem(self.file)

Reimplemented in idlelib.PathBrowser.PathBrowser.

Definition at line 55 of file ClassBrowser.py.

00055 
00056     def settitle(self):
00057         self.top.wm_title("Class Browser - " + self.name)
00058         self.top.wm_iconname("Class Browser")


Member Data Documentation

Definition at line 28 of file ClassBrowser.py.

Definition at line 36 of file ClassBrowser.py.

Definition at line 27 of file ClassBrowser.py.

Definition at line 51 of file ClassBrowser.py.

Definition at line 40 of file ClassBrowser.py.


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