当前位置: 首页>>代码示例>>Python>>正文


Python CDMLib.dlgNotPrepared方法代码示例

本文整理汇总了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()
开发者ID:arturochian,项目名称:MIST,代码行数:20,代码来源:StudyModels.py

示例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)
开发者ID:Jacob-Barhak,项目名称:MIST,代码行数:24,代码来源:PopulationSets.py


注:本文中的CDMLib.dlgNotPrepared方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。