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


Python ExtendableDialog.exec_方法代码示例

本文整理汇总了Python中openmolar.qt4gui.dialogs.base_dialogs.ExtendableDialog.exec_方法的典型用法代码示例。如果您正苦于以下问题:Python ExtendableDialog.exec_方法的具体用法?Python ExtendableDialog.exec_怎么用?Python ExtendableDialog.exec_使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在openmolar.qt4gui.dialogs.base_dialogs.ExtendableDialog的用法示例。


在下文中一共展示了ExtendableDialog.exec_方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: exec_

# 需要导入模块: from openmolar.qt4gui.dialogs.base_dialogs import ExtendableDialog [as 别名]
# 或者: from openmolar.qt4gui.dialogs.base_dialogs.ExtendableDialog import exec_ [as 别名]
    def exec_(self):
        if ExtendableDialog.exec_(self):

            self.deleted_plan_items = list(self._deleted_plan_items)
            self.new_cmp_items = list(self._new_cmp_items)
            for item in self.completed_items:
                try:
                    self.deleted_plan_items.remove(item)
                except ValueError:
                    pass
                try:
                    self.new_cmp_items.remove(item)
                except ValueError:
                    pass

            self.deleted_cmp_items = list(self._deleted_cmp_items)
            self.new_plan_items = list(self._new_plan_items)
            for item in self.reversed_items:
                try:
                    self.deleted_cmp_items.remove(item)
                except ValueError:
                    pass
                try:
                    self.new_plan_items.remove(item)
                except ValueError:
                    pass

            return True

        return False
开发者ID:atarist,项目名称:openmolar1,代码行数:32,代码来源:advanced_tx_planning_dialog.py

示例2: exec_

# 需要导入模块: from openmolar.qt4gui.dialogs.base_dialogs import ExtendableDialog [as 别名]
# 或者: from openmolar.qt4gui.dialogs.base_dialogs.ExtendableDialog import exec_ [as 别名]
 def exec_(self):
     if self.worth_executing:
         if ExtendableDialog.exec_(self):
             self.config.user_chosen_option = \
                 self.options_widget.chosen_option
             self.config.write_config()
         return True
     return False
开发者ID:pqyptixa,项目名称:openmolar1,代码行数:10,代码来源:check_version_dialog.py

示例3: exec_

# 需要导入模块: from openmolar.qt4gui.dialogs.base_dialogs import ExtendableDialog [as 别名]
# 或者: from openmolar.qt4gui.dialogs.base_dialogs.ExtendableDialog import exec_ [as 别名]
 def exec_(self):
     if ExtendableDialog.exec_(self):
         if self.password_ok:
             return True
         else:
             QtWidgets.QMessageBox.warning(
                 self.parent(),
                 _("Login Error"),
                 '<h2>%s %s</h2><em>%s</em>' % (
                     _('Incorrect'),
                     _("User/password combination!"),
                     _('Please Try Again.')
                 )
             )
             return self.exec_()
     return False
开发者ID:pqyptixa,项目名称:openmolar1,代码行数:18,代码来源:login_dialog.py

示例4: exec_

# 需要导入模块: from openmolar.qt4gui.dialogs.base_dialogs import ExtendableDialog [as 别名]
# 或者: from openmolar.qt4gui.dialogs.base_dialogs.ExtendableDialog import exec_ [as 别名]
 def exec_(self):
     LOGGER.debug("exec_ called by %s", self.sender())
     self.add_widgets()
     if self.sender() == self.data_fetcher:
         self.show_result()
         # lookup has been performed discreetly, only bother the user if
         # there is an update available
         if not self.update_available:
             return False
     else:
         self.data_fetcher.finished_signal.connect(self.show_result)
         QtCore.QTimer.singleShot(5000, self.hit_website)
     if ExtendableDialog.exec_(self):
         self.config.user_chosen_option = self.options_widget.chosen_option
         self.config.checked_today = self.checked_today
         self.config.write_config()
开发者ID:rowinggolfer,项目名称:openmolar1,代码行数:18,代码来源:check_version_dialog.py

示例5: exec_

# 需要导入模块: from openmolar.qt4gui.dialogs.base_dialogs import ExtendableDialog [as 别名]
# 或者: from openmolar.qt4gui.dialogs.base_dialogs.ExtendableDialog import exec_ [as 别名]
 def exec_(self):
     while ExtendableDialog.exec_(self):
         self.db_check()
         if self.login_ok:
             if self.reception_radioButton.isChecked():
                 localsettings.station = "reception"
             localsettings.setOperator(self.user1, self.user2)
             self.accept()
             return True
         else:
             # LOGGER.debug("passwords ok %s", self.password_ok)
             # LOGGER.debug("user1 ok %s", self.user1_ok)
             # LOGGER.debug("user2 ok %s", self.user2_ok)
             QtGui.QMessageBox.warning(
                 self.parent(),
                 _("Login Error"),
                 u'<h2>%s %s</h2><em>%s</em>' % (
                     _('Incorrect'),
                     _("User/password combination!"),
                     _('Please Try Again.')
                 )
             )
     return False
开发者ID:Griffin-Ashton,项目名称:openmolar1,代码行数:25,代码来源:login_dialog.py

示例6: exec_

# 需要导入模块: from openmolar.qt4gui.dialogs.base_dialogs import ExtendableDialog [as 别名]
# 或者: from openmolar.qt4gui.dialogs.base_dialogs.ExtendableDialog import exec_ [as 别名]
 def exec_(self):
     if ExtendableDialog.exec_(self):
         self._open_document()
         return True
     return False
开发者ID:pqyptixa,项目名称:openmolar1,代码行数:7,代码来源:document_dialog.py

示例7: exec_

# 需要导入模块: from openmolar.qt4gui.dialogs.base_dialogs import ExtendableDialog [as 别名]
# 或者: from openmolar.qt4gui.dialogs.base_dialogs.ExtendableDialog import exec_ [as 别名]
 def exec_(self):
     if ExtendableDialog.exec_(self):
         return self.apply()
     return False
开发者ID:rowinggolfer,项目名称:openmolar1,代码行数:6,代码来源:add_user_dialog.py

示例8: exec_

# 需要导入模块: from openmolar.qt4gui.dialogs.base_dialogs import ExtendableDialog [as 别名]
# 或者: from openmolar.qt4gui.dialogs.base_dialogs.ExtendableDialog import exec_ [as 别名]
 def exec_(self):
     result = ExtendableDialog.exec_(self)
     if result:
         result = self.check_valid_input or self.exec_()
     return result
开发者ID:rowinggolfer,项目名称:openmolar1,代码行数:7,代码来源:new_denture_dialog.py

示例9: exec_

# 需要导入模块: from openmolar.qt4gui.dialogs.base_dialogs import ExtendableDialog [as 别名]
# 或者: from openmolar.qt4gui.dialogs.base_dialogs.ExtendableDialog import exec_ [as 别名]
 def exec_(self):
     if ExtendableDialog.exec_(self):
         self._apply()
         return True
     return False
开发者ID:atarist,项目名称:openmolar1,代码行数:7,代码来源:feescale_configure_dialog.py


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