Cat
object.py
Go to the documentation of this file.
1 import sys, os
2 import wx
3 import wx.xrc as xrc
4 from libCatKernel import *
5 
6 class object():
7  def __init__(self, cat, obj, panel, path):
8  self.cat = cat
9  self.obj = obj
10  self.panel = panel
11  self.path = path
12 # self.type = objtype
13 
14  def getControl(self, xmlid , item) :
15  '''Retrieves the given control (within a dialog) by its xmlid'''
16  control = item.FindWindowById(xrc.XRCID(xmlid))
17  assert control != None, 'Programming error: a control with xml id ' + xmlid + ' was not found.'
18  return control
19 
20  def getControl(self, xmlid ) :
21  '''Retrieves the given control (within a dialog) by its xmlid'''
22  control = self.panel.FindWindowById(xrc.XRCID(xmlid))
23  assert control != None, 'Programming error: a control with xml id ' + xmlid + ' was not found.'
24  return control
25 
26 
27 #----------------------------------------------------------------------
28 
29 
def __init__(self, cat, obj, panel, path)
Definition: object.py:7
def getControl(self, xmlid, item)
Definition: object.py:14