6 This program will load and run one of the individual demos in this     7 directory within its own frame window.  Just specify the module name    13 import wx.lib.mixins.inspection
    19 from libCatKernel 
import *
    26     overviewText = 
"CAT Graphical Window"    28         wx.Frame.__init__(self, parent, wx.NewId(), title)
    32         self.
path=os.path.join(os.environ.get(
"CATPATH"), 
"CatPython", 
"python")
    34         res=xrc.XmlResource(os.path.join(self.
path,
"xrc/GraphPanel.xrc"))
    35         self.
panel=res.LoadPanel(self, 
"GraphPanel")
    42         self.Bind(wx.EVT_NOTEBOOK_PAGE_CHANGED, self.
onChange)
    45         '''Retrieves the given control (within a dialog) by its xmlid'''    46         control = panel.FindWindowById(xrc.XRCID(xmlid))
    47         assert control != 
None, 
'Programming error: a control with xml id ' + xmlid + 
' was not found.'    53         TB_CLOSEALL=wx.NewId()
    56         self.
toolBar = self.CreateToolBar(wx.TB_DOCKABLE)
    57         self.
toolBar.AddLabelTool(TB_CLOSEALL, 
'', wx.Bitmap(os.path.join(self.
path,
"xrc/icons/closeall.png")))
    58         self.
toolBar.AddLabelTool(TB_CLOSE  , 
'', wx.Bitmap(os.path.join(self.
path,
"xrc/icons/close.png")))
    60         self.
toolBar.AddLabelTool(TB_PRINT, 
'', wx.Bitmap(os.path.join(self.
path,
"xrc/icons/fileprint.png")))
    61         self.
toolBar.AddLabelTool(TB_SAVE, 
'', wx.Bitmap(os.path.join(self.
path,
"xrc/icons/filesave.png")))        
    64         self.Bind(wx.EVT_TOOL, self.
onCloseAll , id=TB_CLOSEALL)
    65         self.Bind(wx.EVT_TOOL, self.
onClose , id=TB_CLOSE)
    66         self.Bind(wx.EVT_TOOL, self.
onPrint , id=TB_PRINT)
    67         self.Bind(wx.EVT_TOOL, self.
onSave  , id=TB_SAVE)
    70         '''Responds to idle time in the system'''    78         self.
parent.gphFrame.Show(
False)
   108             module=wrap.GetActive()
   113                 self.
objs.append(obj)
   114                 self.
figs.append(panel)
   115                 self.
notebook.AddPage(panel,obj.name(),
True)
   119         self.
figs[pos].current()
 
def onReLoad(self, event)
 
def onChange(self, event)
 
def onIconize(self, event)
 
def onCloseAll(self, event)
 
def __init__(self, app, parent, title)
 
def getControl(self, panel, xmlid)