本文整理汇总了Python中CDMLib.dlgNotPrepared方法的典型用法代码示例。如果您正苦于以下问题:Python CDMLib.dlgNotPrepared方法的具体用法?Python CDMLib.dlgNotPrepared怎么用?Python CDMLib.dlgNotPrepared使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CDMLib
的用法示例。
在下文中一共展示了CDMLib.dlgNotPrepared方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: OnButtonClick
# 需要导入模块: import CDMLib [as 别名]
# 或者: from CDMLib import dlgNotPrepared [as 别名]
def OnButtonClick(self, event):
"""
Event handler to respond to the button click event.
Open Transition Form or create a copy of current Model
New control mechanism may need to make more general method to open and manage child form
"""
id = event.GetId()
if id == cdml.IDP_BUTTON1: # open transition form
if self.Id == 0 :
cdml.dlgSimpleMsg('ERROR', "This model is Empty. Please enter data before transitions", Parent = self)
return
frame = self.GetTopLevelParent()
cdml.OpenForm('Transitions', self, cdml.ID_MODE_MULTI, self.Key, None, frame.idPrj)
elif id == cdml.IDP_BUTTON2:
cdml.dlgNotPrepared()
示例2: OnButtonClick
# 需要导入模块: import CDMLib [as 别名]
# 或者: from CDMLib import dlgNotPrepared [as 别名]
def OnButtonClick(self, event):
""" Method to respond the action taken by user"""
id = event.GetId()
if id == cdml.IDP_BUTTON1: # Copy this set
cdml.dlgNotPrepared()
elif id == cdml.IDP_BUTTON2: # PopulationStructure
cdml.dlgNotPrepared()
elif id == cdml.IDP_BUTTON3: # PopulationData
frame = self.GetTopLevelParent()
if self.Id == 0:
PopulationID = None
else:
PopulationID = self.Key
CurrentName = str(self.tc_name.GetValue())
cdml.OpenForm("PopulationData", self, CurrentName, PopulationID, None, frame.idPrj)