本文整理汇总了Python中DimensionBaseDialog.DimensionBaseDialog.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python DimensionBaseDialog.__init__方法的具体用法?Python DimensionBaseDialog.__init__怎么用?Python DimensionBaseDialog.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DimensionBaseDialog.DimensionBaseDialog
的用法示例。
在下文中一共展示了DimensionBaseDialog.__init__方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from DimensionBaseDialog import DimensionBaseDialog [as 别名]
# 或者: from DimensionBaseDialog.DimensionBaseDialog import __init__ [as 别名]
def __init__(self,parent):
DimensionBaseDialog.__init__(self,parent,armid.USECASES_ID,'Use Cases',(400,350),'usecase.png')
idList = [armid.USECASES_USECASELIST_ID,armid.USECASES_BUTTONADD_ID,armid.USECASES_BUTTONDELETE_ID]
columnList = ['Name']
self.buildControls(idList,columnList,self.dbProxy.getUseCases,'usecase')
self.listCtrl = self.FindWindowById(armid.USECASES_USECASELIST_ID)
self.listCtrl.SetColumnWidth(0,300)
示例2: __init__
# 需要导入模块: from DimensionBaseDialog import DimensionBaseDialog [as 别名]
# 或者: from DimensionBaseDialog.DimensionBaseDialog import __init__ [as 别名]
def __init__(self,parent):
DimensionBaseDialog.__init__(self,parent,RISKS_ID,'Risks',(800,300),'risk.png')
idList = [RISKS_LISTRISKS_ID,RISKS_BUTTONADD_ID,RISKS_BUTTONDELETE_ID]
columnList = ['Name']
self.buildControls(idList,columnList,self.dbProxy.getRisks,'risk')
listCtrl = self.FindWindowById(RISKS_LISTRISKS_ID)
listCtrl.SetColumnWidth(0,600)
示例3: __init__
# 需要导入模块: from DimensionBaseDialog import DimensionBaseDialog [as 别名]
# 或者: from DimensionBaseDialog.DimensionBaseDialog import __init__ [as 别名]
def __init__(self,parent):
DimensionBaseDialog.__init__(self,parent,armid.OBSTACLES_ID,'Obstacles',(930,300),'obstacle.png')
idList = [armid.OBSTACLES_OBSTACLELIST_ID,armid.OBSTACLES_BUTTONADD_ID,armid.OBSTACLES_BUTTONDELETE_ID]
columnList = ['Name']
self.buildControls(idList,columnList,self.dbProxy.getObstacles,'obstacle')
listCtrl = self.FindWindowById(armid.OBSTACLES_OBSTACLELIST_ID)
listCtrl.SetColumnWidth(0,300)
示例4: __init__
# 需要导入模块: from DimensionBaseDialog import DimensionBaseDialog [as 别名]
# 或者: from DimensionBaseDialog.DimensionBaseDialog import __init__ [as 别名]
def __init__(self, parent):
DimensionBaseDialog.__init__(self, parent, OBSTACLES_ID, "Obstacles", (930, 300), "obstacle.png")
idList = [OBSTACLES_OBSTACLELIST_ID, OBSTACLES_BUTTONADD_ID, OBSTACLES_BUTTONDELETE_ID]
columnList = ["Name"]
self.buildControls(idList, columnList, self.dbProxy.getObstacles, "obstacle")
listCtrl = self.FindWindowById(OBSTACLES_OBSTACLELIST_ID)
listCtrl.SetColumnWidth(0, 300)
示例5: __init__
# 需要导入模块: from DimensionBaseDialog import DimensionBaseDialog [as 别名]
# 或者: from DimensionBaseDialog.DimensionBaseDialog import __init__ [as 别名]
def __init__(self, parent):
DimensionBaseDialog.__init__(self, parent, armid.TASKS_ID, "Tasks", (400, 350), "task.png")
idList = [armid.TASKS_TASKLIST_ID, armid.TASKS_BUTTONADD_ID, armid.TASKS_BUTTONDELETE_ID]
columnList = ["Name"]
self.buildControls(idList, columnList, self.dbProxy.getTasks, "task")
listCtrl = self.FindWindowById(armid.TASKS_TASKLIST_ID)
listCtrl.SetColumnWidth(0, 300)
示例6: __init__
# 需要导入模块: from DimensionBaseDialog import DimensionBaseDialog [as 别名]
# 或者: from DimensionBaseDialog.DimensionBaseDialog import __init__ [as 别名]
def __init__(self,parent):
DimensionBaseDialog.__init__(self,parent,TASKS_ID,'Tasks',(400,350),'task.png')
idList = [TASKS_TASKLIST_ID,TASKS_BUTTONADD_ID,TASKS_BUTTONDELETE_ID]
columnList = ['Name']
self.buildControls(idList,columnList,self.dbProxy.getTasks,'task')
listCtrl = self.FindWindowById(TASKS_TASKLIST_ID)
listCtrl.SetColumnWidth(0,300)
示例7: __init__
# 需要导入模块: from DimensionBaseDialog import DimensionBaseDialog [as 别名]
# 或者: from DimensionBaseDialog.DimensionBaseDialog import __init__ [as 别名]
def __init__(self,parent):
DimensionBaseDialog.__init__(self,parent,COUNTERMEASURES_ID,'Countermeasures',(800,300),'countermeasure.png')
self.theMainWindow = parent
idList = [COUNTERMEASURES_LISTCOUNTERMEASURES_ID,COUNTERMEASURES_BUTTONADD_ID,COUNTERMEASURES_BUTTONDELETE_ID]
columnList = ['Name']
self.buildControls(idList,columnList,self.dbProxy.getCountermeasures,'countermeasure')
listCtrl = self.FindWindowById(COUNTERMEASURES_LISTCOUNTERMEASURES_ID)
listCtrl.SetColumnWidth(0,300)
示例8: __init__
# 需要导入模块: from DimensionBaseDialog import DimensionBaseDialog [as 别名]
# 或者: from DimensionBaseDialog.DimensionBaseDialog import __init__ [as 别名]
def __init__(self,parent):
DimensionBaseDialog.__init__(self,parent,armid.ATTACKERS_ID,'Attackers',(800,300),'attacker.png')
idList = [armid.ATTACKERS_ATTACKERLIST_ID,armid.ATTACKERS_BUTTONADD_ID,armid.ATTACKERS_BUTTONDELETE_ID]
columnList = ['Name','Description']
self.buildControls(idList,columnList,self.dbProxy.getAttackers,'attacker')
listCtrl = self.FindWindowById(armid.ATTACKERS_ATTACKERLIST_ID)
listCtrl.SetColumnWidth(0,150)
listCtrl.SetColumnWidth(1,600)
示例9: __init__
# 需要导入模块: from DimensionBaseDialog import DimensionBaseDialog [as 别名]
# 或者: from DimensionBaseDialog.DimensionBaseDialog import __init__ [as 别名]
def __init__(self,parent):
DimensionBaseDialog.__init__(self,parent,CONCEPTREFERENCES_ID,'Concept References',(930,300),'persona.png')
self.theMainWindow = parent
idList = [CONCEPTREFERENCES_REFLIST_ID,CONCEPTREFERENCES_BUTTONADD_ID,CONCEPTREFERENCES_BUTTONDELETE_ID]
columnList = ['Name']
self.buildControls(idList,columnList,self.dbProxy.getConceptReferences,'concept_reference')
listCtrl = self.FindWindowById(CONCEPTREFERENCES_REFLIST_ID)
listCtrl.SetColumnWidth(0,800)
示例10: __init__
# 需要导入模块: from DimensionBaseDialog import DimensionBaseDialog [as 别名]
# 或者: from DimensionBaseDialog.DimensionBaseDialog import __init__ [as 别名]
def __init__(self,parent):
DimensionBaseDialog.__init__(self,parent,PERSONAS_ID,'Personas',(800,300),'persona.png')
idList = [PERSONAS_PERSONALIST_ID,PERSONAS_BUTTONADD_ID,PERSONAS_BUTTONDELETE_ID]
columnList = ['Name','Type']
self.buildControls(idList,columnList,self.dbProxy.getPersonas,'persona')
listCtrl = self.FindWindowById(PERSONAS_PERSONALIST_ID)
listCtrl.SetColumnWidth(0,100)
listCtrl.SetColumnWidth(1,600)
示例11: __init__
# 需要导入模块: from DimensionBaseDialog import DimensionBaseDialog [as 别名]
# 或者: from DimensionBaseDialog.DimensionBaseDialog import __init__ [as 别名]
def __init__(self, parent):
DimensionBaseDialog.__init__(self, parent, armid.PERSONAS_ID, "Personas", (800, 300), "persona.png")
idList = [armid.PERSONAS_PERSONALIST_ID, armid.PERSONAS_BUTTONADD_ID, armid.PERSONAS_BUTTONDELETE_ID]
columnList = ["Name", "Type"]
self.buildControls(idList, columnList, self.dbProxy.getPersonas, "persona")
listCtrl = self.FindWindowById(armid.PERSONAS_PERSONALIST_ID)
listCtrl.SetColumnWidth(0, 100)
listCtrl.SetColumnWidth(1, 600)
示例12: __init__
# 需要导入模块: from DimensionBaseDialog import DimensionBaseDialog [as 别名]
# 或者: from DimensionBaseDialog.DimensionBaseDialog import __init__ [as 别名]
def __init__(self,parent):
DimensionBaseDialog.__init__(self,parent,GOALS_ID,'Goals',(930,300),'goal.png')
self.theMainWindow = parent
idList = [GOALS_GOALLIST_ID,GOALS_BUTTONADD_ID,GOALS_BUTTONDELETE_ID]
columnList = ['Name','Originator','Status']
self.buildControls(idList,columnList,self.dbProxy.getColouredGoals,'goal')
listCtrl = self.FindWindowById(GOALS_GOALLIST_ID)
listCtrl.SetColumnWidth(0,300)
示例13: __init__
# 需要导入模块: from DimensionBaseDialog import DimensionBaseDialog [as 别名]
# 或者: from DimensionBaseDialog.DimensionBaseDialog import __init__ [as 别名]
def __init__(self,parent):
DimensionBaseDialog.__init__(self,parent,SECURITYPATTERNS_ID,'Security Patterns',(930,300),'countermeasure.png')
self.theMainWindow = parent
idList = [SECURITYPATTERNS_PATTERNLIST_ID,SECURITYPATTERNS_BUTTONADD_ID,SECURITYPATTERNS_BUTTONDELETE_ID]
columnList = ['Name']
self.buildControls(idList,columnList,self.dbProxy.getSecurityPatterns,'securitypattern')
listCtrl = self.FindWindowById(SECURITYPATTERNS_PATTERNLIST_ID)
listCtrl.SetColumnWidth(0,300)
示例14: __init__
# 需要导入模块: from DimensionBaseDialog import DimensionBaseDialog [as 别名]
# 或者: from DimensionBaseDialog.DimensionBaseDialog import __init__ [as 别名]
def __init__(self,parent):
DimensionBaseDialog.__init__(self,parent,DOMAINPROPERTIES_ID,'Domain Properties',(930,300),'domainproperty.png')
idList = [DOMAINPROPERTIES_DOMAINPROPERTYLIST_ID,DOMAINPROPERTIES_BUTTONADD_ID,DOMAINPROPERTIES_BUTTONDELETE_ID]
columnList = ['Name','Type']
self.buildControls(idList,columnList,self.dbProxy.getDomainProperties,'domainproperty')
listCtrl = self.FindWindowById(DOMAINPROPERTIES_DOMAINPROPERTYLIST_ID)
listCtrl.SetColumnWidth(0,300)
listCtrl.SetColumnWidth(1,200)
示例15: __init__
# 需要导入模块: from DimensionBaseDialog import DimensionBaseDialog [as 别名]
# 或者: from DimensionBaseDialog.DimensionBaseDialog import __init__ [as 别名]
def __init__(self,parent):
DimensionBaseDialog.__init__(self,parent,EXTERNALDOCUMENTS_ID,'External Documents',(930,300),'persona.png')
self.theMainWindow = parent
idList = [EXTERNALDOCUMENTS_DOCLIST_ID,EXTERNALDOCUMENTS_BUTTONADD_ID,EXTERNALDOCUMENTS_BUTTONDELETE_ID]
columnList = ['Name']
self.buildControls(idList,columnList,self.dbProxy.getExternalDocuments,'external_document')
listCtrl = self.FindWindowById(EXTERNALDOCUMENTS_DOCLIST_ID)
listCtrl.SetColumnWidth(0,300)