本文整理汇总了Python中openmolar.qt4gui.dialogs.base_dialogs.ExtendableDialog._clicked方法的典型用法代码示例。如果您正苦于以下问题:Python ExtendableDialog._clicked方法的具体用法?Python ExtendableDialog._clicked怎么用?Python ExtendableDialog._clicked使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类openmolar.qt4gui.dialogs.base_dialogs.ExtendableDialog
的用法示例。
在下文中一共展示了ExtendableDialog._clicked方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: _clicked
# 需要导入模块: from openmolar.qt4gui.dialogs.base_dialogs import ExtendableDialog [as 别名]
# 或者: from openmolar.qt4gui.dialogs.base_dialogs.ExtendableDialog import _clicked [as 别名]
def _clicked(self, but):
if but == self.postpone_but:
self.postpone_appointment()
elif but == self.apply_but:
self.confirm_cancel_all()
else:
ExtendableDialog._clicked(self, but)
示例2: _clicked
# 需要导入模块: from openmolar.qt4gui.dialogs.base_dialogs import ExtendableDialog [as 别名]
# 或者: from openmolar.qt4gui.dialogs.base_dialogs.ExtendableDialog import _clicked [as 别名]
def _clicked(self, but):
"""
"private" function called when button box is clicked
"""
role = self.button_box.buttonRole(but)
if role == self.button_box.ActionRole:
self.next_widget()
else:
ExtendableDialog._clicked(self, but)
示例3: _clicked
# 需要导入模块: from openmolar.qt4gui.dialogs.base_dialogs import ExtendableDialog [as 别名]
# 或者: from openmolar.qt4gui.dialogs.base_dialogs.ExtendableDialog import _clicked [as 别名]
def _clicked(self, but):
'''
overwrite :doc:`ExtendableDialog` _clicked
'''
if but == self.more_but:
FinalChoiceDialog.FILTER = not self.FILTER
self.load_candidates()
return
ExtendableDialog._clicked(self, but)
示例4: _clicked
# 需要导入模块: from openmolar.qt4gui.dialogs.base_dialogs import ExtendableDialog [as 别名]
# 或者: from openmolar.qt4gui.dialogs.base_dialogs.ExtendableDialog import _clicked [as 别名]
def _clicked(self, but):
'''
overwrite BaseDialog method
'''
if but == self.apply_but and QtWidgets.QMessageBox.question(
self,
_("Confirm"),
_("Apply Changes?"),
QtWidgets.QMessageBox.Ok | QtWidgets.QMessageBox.Cancel,
QtWidgets.QMessageBox.Cancel) == QtWidgets.QMessageBox.Cancel:
return
ExtendableDialog._clicked(self, but)
示例5: _clicked
# 需要导入模块: from openmolar.qt4gui.dialogs.base_dialogs import ExtendableDialog [as 别名]
# 或者: from openmolar.qt4gui.dialogs.base_dialogs.ExtendableDialog import _clicked [as 别名]
def _clicked(self, but):
'''
overwrite BaseDialog method
'''
role = self.button_box.buttonRole(but)
if role == QtGui.QDialogButtonBox.ApplyRole and QtGui.QMessageBox.question(
self, _("Confirm"), _("Apply Changes?"),
QtGui.QMessageBox.Ok | QtGui.QMessageBox.Cancel,
QtGui.QMessageBox.Cancel
) == QtGui.QMessageBox.Cancel:
return
ExtendableDialog._clicked(self, but)
示例6: _clicked
# 需要导入模块: from openmolar.qt4gui.dialogs.base_dialogs import ExtendableDialog [as 别名]
# 或者: from openmolar.qt4gui.dialogs.base_dialogs.ExtendableDialog import _clicked [as 别名]
def _clicked(self, but):
if but == self.discard_but:
self.discard()
return
ExtendableDialog._clicked(self, but)