本文整理汇总了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
示例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
示例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
示例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()
示例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
示例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
示例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
示例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
示例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