def __init__(self,parent,winId,dp): DimensionListCtrl.__init__(self,parent,winId,wx.DefaultSize,'Environment','environment',dp,'Context of use',wx.LC_REPORT | wx.LC_SINGLE_SEL) b = Borg() self.dbProxy = b.dbProxy self.theInheritedEnvironment = '' self.theDimMenu.Append(ENVLIST_MENUNEWENVIRONMENT_ID,'New Environment') self.theDimMenu.Append(ENVLIST_MENUINHERITENVIRONMENT_ID,'Inherit Environment') wx.EVT_MENU(self.theDimMenu,ENVLIST_MENUNEWENVIRONMENT_ID,self.onNewEnvironment) wx.EVT_MENU(self.theDimMenu,ENVLIST_MENUINHERITENVIRONMENT_ID,self.onInheritEnvironment)
def __init__(self, parent, dp, personaList): DimensionListCtrl.__init__(self, parent, armid.COUNTERMEASURE_LISTROLES_ID, wx.DefaultSize, 'Role', 'role', dp, listStyle=wx.LC_REPORT | wx.LC_SINGLE_SEL) self.thePersonaList = personaList
def __init__(self, parent, winId, dp): DimensionListCtrl.__init__(self, parent, winId, wx.DefaultSize, 'Environment', 'environment', dp, 'Context of use', wx.LC_REPORT | wx.LC_SINGLE_SEL) b = Borg() self.dbProxy = b.dbProxy self.theInheritedEnvironment = '' self.theDimMenu.Append(ENVLIST_MENUNEWENVIRONMENT_ID, 'New Environment') self.theDimMenu.Append(ENVLIST_MENUINHERITENVIRONMENT_ID, 'Inherit Environment') wx.EVT_MENU(self.theDimMenu, ENVLIST_MENUNEWENVIRONMENT_ID, self.onNewEnvironment) wx.EVT_MENU(self.theDimMenu, ENVLIST_MENUINHERITENVIRONMENT_ID, self.onInheritEnvironment)
def __init__(self,parent,dp,personaList): DimensionListCtrl.__init__(self,parent,COUNTERMEASURE_LISTROLES_ID,wx.DefaultSize,'Role','role',dp,listStyle=wx.LC_REPORT | wx.LC_SINGLE_SEL) self.thePersonaList = personaList