本文整理汇总了Python中openmolar.qt4gui.dialogs.base_dialogs.ExtendableDialog.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python ExtendableDialog.__init__方法的具体用法?Python ExtendableDialog.__init__怎么用?Python ExtendableDialog.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类openmolar.qt4gui.dialogs.base_dialogs.ExtendableDialog
的用法示例。
在下文中一共展示了ExtendableDialog.__init__方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from openmolar.qt4gui.dialogs.base_dialogs import ExtendableDialog [as 别名]
# 或者: from openmolar.qt4gui.dialogs.base_dialogs.ExtendableDialog import __init__ [as 别名]
def __init__(self, om_gui=None):
ExtendableDialog.__init__(self, om_gui)
self.chosen_properties = {}
self.om_gui = om_gui
message = (_("Chart/Plan a Bridge"))
self.setWindowTitle(message)
self.header_label = WarningLabel(message)
self.wizard_widget = QtWidgets.QStackedWidget()
page0 = PageZero(self)
page1 = PageOne(self)
page2 = PageTwo(self)
page3 = PageThree(self)
page4 = PageFour(self)
accept_page = AcceptPage(self)
self.wizard_widget.addWidget(page0)
self.wizard_widget.addWidget(page1)
self.wizard_widget.addWidget(page2)
self.wizard_widget.addWidget(page3)
self.wizard_widget.addWidget(page4)
self.wizard_widget.addWidget(accept_page)
self.insertWidget(self.header_label)
self.insertWidget(self.wizard_widget)
self.advanced_label = QtWidgets.QLabel("self.advanced_label")
self.add_advanced_widget(self.advanced_label)
self.next_but = self.button_box.addButton(
_("Next"), self.button_box.ActionRole)
self.apply_but.hide()
示例2: __init__
# 需要导入模块: from openmolar.qt4gui.dialogs.base_dialogs import ExtendableDialog [as 别名]
# 或者: from openmolar.qt4gui.dialogs.base_dialogs.ExtendableDialog import __init__ [as 别名]
def __init__(self, om_gui):
ExtendableDialog.__init__(self, om_gui, remove_stretch=True)
self.om_gui = om_gui
title = _("Manage Family Group")
self.setWindowTitle(title)
label = QtGui.QLabel(u"<b>%s</b>" % title)
label.setAlignment(QtCore.Qt.AlignCenter)
frame = QtGui.QFrame()
self.frame_layout = QtGui.QGridLayout(frame)
scroll_area = QtGui.QScrollArea()
scroll_area.setWidget(frame)
scroll_area.setWidgetResizable(True)
self.insertWidget(label)
self.insertWidget(scroll_area)
self.member_dict = {}
self.widgets = []
self.apply_but.hide()
self.cancel_but.setText(_("Close"))
self.advanced_widg = _AdvancedWidget(self)
self.advanced_widg.sync_address_signal.connect(self.sync_addresses)
self.advanced_widg.add_member_signal.connect(self.record_search)
self.advanced_widg.find_others_signal.connect(self.address_search)
self.advanced_widg.delete_group_signal.connect(self.delete_group)
self.advanced_widg.setEnabled(False)
self.add_advanced_widget(self.advanced_widg)
self.load_values()
示例3: __init__
# 需要导入模块: from openmolar.qt4gui.dialogs.base_dialogs import ExtendableDialog [as 别名]
# 或者: from openmolar.qt4gui.dialogs.base_dialogs.ExtendableDialog import __init__ [as 别名]
def __init__(self, parent=None):
ExtendableDialog.__init__(self, parent)
self.setWindowTitle(_("Login Dialog"))
header_label = WarningLabel(_('Login Required'))
self.password_lineEdit = QtWidgets.QLineEdit()
self.password_lineEdit.setEchoMode(QtWidgets.QLineEdit.Password)
self.user1_lineEdit = UpperCaseLineEdit()
self.user1_lineEdit.setMaximumWidth(50)
self.user2_lineEdit = UpperCaseLineEdit()
self.user2_lineEdit.setMaximumWidth(50)
self.reception_radioButton = QtWidgets.QRadioButton(
_("Reception Machine"))
self.surgery_radioButton = QtWidgets.QRadioButton(_("Surgery Machine"))
self.surgery_radioButton.setChecked(True)
frame = QtWidgets.QFrame()
form_layout = QtWidgets.QFormLayout(frame)
form_layout.addRow(_("System Password"), self.password_lineEdit)
form_layout.addRow(_("User 1 (Required)"), self.user1_lineEdit)
form_layout.addRow(_("User 2 (Optional)"), self.user2_lineEdit)
but_group = QtWidgets.QButtonGroup(self)
but_group.addButton(self.surgery_radioButton)
but_group.addButton(self.reception_radioButton)
self.insertWidget(header_label)
self.insertWidget(frame)
self.insertWidget(self.surgery_radioButton)
self.insertWidget(self.reception_radioButton)
self.enableApply()
# grab any stored information
PASSWORD, USER1, USER2 = localsettings.autologin()
self.password_lineEdit.setText(PASSWORD)
self.user1_lineEdit.setText(USER1)
self.user2_lineEdit.setText(USER2)
self.autoreception(USER1)
self.autoreception(USER2)
self.parse_conf_file()
self.alternate_servers_widget = AlternateServersWidget(self)
if self.alternate_servers_widget.has_options:
self.more_but.setText(_("Database choice"))
self.add_advanced_widget(self.alternate_servers_widget)
else:
self.more_but.hide()
self.user1_lineEdit.textEdited.connect(self.autoreception)
self.user2_lineEdit.textEdited.connect(self.autoreception)
self.dirty = True
self.set_check_on_cancel(True)
QtCore.QTimer.singleShot(1000, self._developer_login)
示例4: __init__
# 需要导入模块: from openmolar.qt4gui.dialogs.base_dialogs import ExtendableDialog [as 别名]
# 或者: from openmolar.qt4gui.dialogs.base_dialogs.ExtendableDialog import __init__ [as 别名]
def __init__(self, parent=None):
ExtendableDialog.__init__(self, parent, remove_stretch=True)
title = _("Confgure Feescales Dialog")
self.setWindowTitle(title)
label = QtGui.QLabel("%s<hr />%s" % (_(
"This dialog enables you to modify the metadata which determines "
"the order feescales are loaded."), _(
"You can also archive a feescale by unchecking 'in use'.")))
label.setWordWrap(True)
self.insertWidget(label)
self.configurer = FeescaleConfigurer()
LOGGER.debug("Feescales to config\n%s", "\n".join(
[" %s" % f for f in self.configurer.feescales]))
frame = QtGui.QFrame()
self.fs_layout = QtGui.QVBoxLayout(frame)
self.fs_layout.setSpacing(1)
for feescale in self.configurer.feescales:
widg = FeescaleWidget(feescale)
widg.promote_signal.connect(self.promote_widget)
widg.demote_signal.connect(self.demote_widget)
widg.check_required_signal.connect(self.check_enable)
self.fs_layout.addWidget(widg)
scroll_area = QtGui.QScrollArea(self)
scroll_area.setWidget(frame)
scroll_area.setWidgetResizable(True)
self.insertWidget(scroll_area)
self.enable_buttons()
示例5: __init__
# 需要导入模块: from openmolar.qt4gui.dialogs.base_dialogs import ExtendableDialog [as 别名]
# 或者: from openmolar.qt4gui.dialogs.base_dialogs.ExtendableDialog import __init__ [as 别名]
def __init__(self, static, parent=None):
ExtendableDialog.__init__(self, parent, remove_stretch=True)
self.setWindowTitle(_("Crown Choice Dialog"))
self.om_gui = parent
self.chosen_shortcut = None
scroll_area = QtWidgets.QScrollArea()
frame = QtWidgets.QFrame()
scroll_area.setWidget(frame)
scroll_area.setWidgetResizable(True)
self.but_layout = QtWidgets.QGridLayout(frame)
self.insertWidget(scroll_area)
self.apply_but.hide()
if static:
self.more_but.hide()
self.add_buttons(STATIC_LIST)
else:
all_crowns_but = QtWidgets.QPushButton(
_("Show Crowns types from all feescales"))
all_crowns_but.clicked.connect(self._show_all_crowns)
self.add_advanced_widget(all_crowns_but)
self.add_buttons(
self.om_gui.pt.fee_table.ui_lists["crown_buttons"])
示例6: __init__
# 需要导入模块: from openmolar.qt4gui.dialogs.base_dialogs import ExtendableDialog [as 别名]
# 或者: from openmolar.qt4gui.dialogs.base_dialogs.ExtendableDialog import __init__ [as 别名]
def __init__(self, parent=None):
ExtendableDialog.__init__(self, parent)
self.setWindowTitle(_("Add User Dialog"))
self.top_label = WarningLabel("%s<br />%s<hr />%s" % (
_('Add a new user to the system?'),
_("This is done using initials or a short nickname."),
_("Must be unique and Maximum allowed in 5 characters")))
self.line_edit = UpperCaseLineEdit()
frame = QtWidgets.QFrame(self)
layout = QtWidgets.QFormLayout(frame)
layout.addRow(_("User Initials or nickname"), self.line_edit)
self.insertWidget(self.top_label)
self.insertWidget(frame)
self.line_edit.textChanged.connect(self._check_enable)
self.line_edit.setFocus()
settings_fetcher = db_settings.SettingsFetcher()
self.existing_logins = settings_fetcher.existing_logins()
list_widget = QtWidgets.QListWidget()
list_widget.addItems(sorted(self.existing_logins))
self.add_advanced_widget(list_widget)
self.set_advanced_but_text(_("view existing users"))
示例7: __init__
# 需要导入模块: from openmolar.qt4gui.dialogs.base_dialogs import ExtendableDialog [as 别名]
# 或者: from openmolar.qt4gui.dialogs.base_dialogs.ExtendableDialog import __init__ [as 别名]
def __init__(self, message, changes, parent=None):
'''
offers a choiced of save discard cancel, but allows for examination
of what has changed.
changes should be a function, which returns a string list
'''
ExtendableDialog.__init__(self, parent)
self.set_advanced_but_text(_("What's changed?"))
self.apply_but.setText("&Save")
self.enableApply()
self.save_on_exit = True
label = WarningLabel(message)
self.insertWidget(label)
self.discard_but = self.button_box.addButton(
QtGui.QDialogButtonBox.Discard)
self.discard_but.setToolTip(_("Discard All Changes"))
self.cancel_but.setToolTip(_("Cancel and Continue Editing"))
self.changes = changes
self.changes_list_widget = QtGui.QListWidget()
self.add_advanced_widget(self.changes_list_widget)
self.result = self.SAVE
示例8: __init__
# 需要导入模块: from openmolar.qt4gui.dialogs.base_dialogs import ExtendableDialog [as 别名]
# 或者: from openmolar.qt4gui.dialogs.base_dialogs.ExtendableDialog import __init__ [as 别名]
def __init__(self, candidates, parent=None):
ExtendableDialog.__init__(self, parent, remove_stretch=True)
self.table_widget = QtWidgets.QTableWidget()
self.table_widget.setAlternatingRowColors(True)
self.table_widget.setSelectionBehavior(
QtWidgets.QAbstractItemView.SelectRows)
self.insertWidget(self.table_widget)
self.headers = (_('Serialno'),
_('Status'),
_('Title'),
_('Forename'),
_('Surname'),
_('Birth Date'),
_('Address Line 1'),
_('Address Line 2'),
_('Town'),
_('POSTCODE'),
_('Tel1'),
_('Tel2'),
_('Mobile')
)
self._candidates = candidates
self.hidden_count = 0
self.load_candidates()
self.table_widget.itemDoubleClicked.connect(self.accept)
self.enableApply(True)
self.apply_but.setText(_("Load the Selected Patient"))
self.setMinimumWidth(
QtWidgets.QApplication.desktop().screenGeometry().width() - 20)
示例9: __init__
# 需要导入模块: from openmolar.qt4gui.dialogs.base_dialogs import ExtendableDialog [as 别名]
# 或者: from openmolar.qt4gui.dialogs.base_dialogs.ExtendableDialog import __init__ [as 别名]
def __init__(self, ftr=False, parent=None):
ExtendableDialog.__init__(self, parent)
self.setWindowTitle(_("Add User Dialog"))
self.top_label = WarningLabel(_('Add a new clinician to the system?'))
self.user_id_comboBox = QtGui.QComboBox()
but = QtGui.QPushButton(_("Add New Login"))
self.name_lineedit = QtGui.QLineEdit()
self.f_name_lineedit = QtGui.QLineEdit()
self.quals_lineedit = QtGui.QLineEdit()
self.type_comboBox = QtGui.QComboBox()
self.type_comboBox.addItems([
_("Dentist"),
_("Hygienist"),
_("Therapist")
])
self.speciality_lineedit = QtGui.QLineEdit()
self.date_edit = QtGui.QDateEdit()
self.date_edit.setDate(localsettings.currentDay())
self.data_lineedit = QtGui.QLineEdit()
self.new_diary_checkbox = QtGui.QCheckBox(
_("Create a new diary for this clinician "
"(uncheck to map to an existing diary)"))
self.new_diary_checkbox.setChecked(True)
row1 = QtGui.QWidget()
layout = QtGui.QHBoxLayout(row1)
layout.setMargin(0)
layout.addWidget(self.user_id_comboBox)
layout.addWidget(but)
frame = QtGui.QFrame(self)
layout = QtGui.QFormLayout(frame)
layout.addRow(_("Initials/Nickname (must be an existing Login)"), row1)
layout.addRow(_("Name eg. Fred Smith"), self.name_lineedit)
layout.addRow(_("Formal Name eg. Dr.F. Smith"), self.f_name_lineedit)
layout.addRow(_("Qualifications"), self.quals_lineedit)
layout.addRow(_("Speciality"), self.speciality_lineedit)
layout.addRow(_("Clinician Type"), self.type_comboBox)
layout.addRow(_("Start Date"), self.date_edit)
layout.addRow(_("Additional Data"), self.data_lineedit)
layout.addRow(self.new_diary_checkbox)
self.insertWidget(self.top_label)
self.insertWidget(frame)
for le in (self.name_lineedit, self.f_name_lineedit):
le.textChanged.connect(self._check_enable)
self.name_lineedit.setFocus()
list_widget = QtGui.QListWidget()
list_widget.addItems(
[str(val) for val in sorted(localsettings.dentDict.values())])
self.add_advanced_widget(list_widget)
self.set_advanced_but_text(_("view existing dentists"))
self.load_logins()
but.clicked.connect(self.add_user)
示例10: __init__
# 需要导入模块: from openmolar.qt4gui.dialogs.base_dialogs import ExtendableDialog [as 别名]
# 或者: from openmolar.qt4gui.dialogs.base_dialogs.ExtendableDialog import __init__ [as 别名]
def __init__(self, parent=None):
ExtendableDialog.__init__(self, parent, remove_stretch=True)
title = _("Openmolar Documents Dialog")
self.setWindowTitle(title)
label = QtWidgets.QLabel(
"<b>%s</b>" %
_("Please choose a document to open"))
label.setAlignment(QtCore.Qt.AlignCenter)
self.chosen_document = None
message = '<p>%s<br /><a href="%s">%s</a></p>' % (
_("For help configuring this feature, see"),
urls.DOCUMENT_HELP, urls.DOCUMENT_HELP)
advanced_label = QtWidgets.QLabel(message)
advanced_label.setOpenExternalLinks(True)
self.add_advanced_widget(advanced_label)
files = os.listdir(localsettings.DOCS_DIRECTORY)
if files == []:
widg = QtWidgets.QLabel("<p>%s %s</p><hr />%s" % (
_("You have no documents stored in"),
localsettings.DOCS_DIRECTORY, message))
widg.setAlignment(QtCore.Qt.AlignCenter)
widg.setOpenExternalLinks(True)
widg.selected_file = _null_func
elif "docs.xml" in files:
dom = None
try:
control_f = os.path.join(
localsettings.DOCS_DIRECTORY, "docs.xml")
dom = minidom.parse(control_f)
doc_node = dom.getElementsByTagName("documents")[0]
widg = QtWidgets.QTabWidget()
for group in doc_node.getElementsByTagName("group"):
docs = group.getElementsByTagName("document")
group_widg = _LabelledFileListWidget(docs)
tab = widg.addTab(group_widg,
group.getAttribute("heading"))
group_widg.radio_buts[0].setChecked(True)
widg.selected_file = widg.currentWidget().selected_file
except:
LOGGER.exception("unable to parse '%s'", control_f)
widg = QtWidgets.QLabel(_("docs.xml is not parseable"))
else:
# self.remove_spacer()
widg = _FileListWidget(files)
self.apply_but.setText(_("Open &File"))
self.enableApply(bool(widg.selected_file()))
self.insertWidget(label)
self.insertWidget(widg)
self._widg = widg
示例11: __init__
# 需要导入模块: from openmolar.qt4gui.dialogs.base_dialogs import ExtendableDialog [as 别名]
# 或者: from openmolar.qt4gui.dialogs.base_dialogs.ExtendableDialog import __init__ [as 别名]
def __init__(self, date_, parent=None):
ExtendableDialog.__init__(self, parent, remove_stretch=True)
self.date = date_
label = WarningLabel(
"%s %s" % (_("Edit Memos for"),
localsettings.longDate(date_))
)
self.bank_hol_label = QtGui.QLabel("")
font = self.font()
font.setBold(True)
font.setItalic(True)
self.bank_hol_label.setFont(font)
self.bank_hol_label.setAlignment(QtCore.Qt.AlignCenter)
self.bank_hol_label.hide()
self.global_lineedit = QtGui.QLineEdit()
frame = QtGui.QFrame()
form_layout = QtGui.QFormLayout(frame)
form_layout.addRow(_("Global Memo"), self.global_lineedit)
frame2 = QtGui.QFrame()
form_layout = QtGui.QFormLayout(frame2)
self.le_dict = {}
for apptix in localsettings.activedent_ixs + localsettings.activehyg_ixs:
le = QtGui.QLineEdit()
form_layout.addRow(localsettings.apptix_reverse.get(apptix), le)
self.le_dict[apptix] = le
scroll_area = QtGui.QScrollArea()
scroll_area.setWidget(frame2)
scroll_area.setWidgetResizable(True)
clinician_groupbox = QtGui.QGroupBox()
clinician_groupbox.setTitle(_("Clinician Memos"))
layout = QtGui.QVBoxLayout(clinician_groupbox)
layout.addWidget(scroll_area)
self.public_holiday_le = QtGui.QLineEdit()
public_holiday_widget = QtGui.QFrame()
form_layout = QtGui.QFormLayout(public_holiday_widget)
form_layout.addRow(_("Public Holiday Text"), self.public_holiday_le)
self.add_advanced_widget(public_holiday_widget)
self.set_advanced_but_text(_("Edit Public Holiday Text"))
self.insertWidget(label)
self.insertWidget(self.bank_hol_label)
self.insertWidget(frame)
self.insertWidget(clinician_groupbox)
self.setMinimumSize(self.sizeHint())
self.check_before_reject_if_dirty = True
QtCore.QTimer.singleShot(100, self.load_values)
示例12: __init__
# 需要导入模块: from openmolar.qt4gui.dialogs.base_dialogs import ExtendableDialog [as 别名]
# 或者: from openmolar.qt4gui.dialogs.base_dialogs.ExtendableDialog import __init__ [as 别名]
def __init__(self, patient, parent=None):
ExtendableDialog.__init__(self, parent)
self.pt = patient
self.data = Gp17Data(patient)
title = _("GP17 Dialog")
self.setWindowTitle(title)
label = QtGui.QLabel(u"<b>%s</b>"% title)
label.setAlignment(QtCore.Qt.AlignCenter)
self.dentist_combobox = QtGui.QComboBox()
self.dentist_combobox.addItems(localsettings.activedents)
frame = QtGui.QFrame()
layout = QtGui.QFormLayout(frame)
layout.addRow(_("Use this dentists stamp?"), self.dentist_combobox)
self.chart_cb = QtGui.QCheckBox(_("Chart"))
self.bpe_cb = QtGui.QCheckBox(_("BPE"))
self.accd_cb = QtGui.QCheckBox(_("Acceptance Date"))
self.cmpd_cb = QtGui.QCheckBox(_("Completion Date"))
self.tx_cb = QtGui.QCheckBox(_("Treatments"))
self.charting_gb = QtGui.QGroupBox(_("Include Chart Details"))
self.charting_gb.setCheckable(True)
layout = QtGui.QVBoxLayout(self.charting_gb)
layout.addWidget(self.chart_cb)
layout.addWidget(self.bpe_cb)
self.course_gb = QtGui.QGroupBox(_("Include Course Details"))
self.course_gb.setCheckable(True)
layout = QtGui.QVBoxLayout(self.course_gb)
layout.addWidget(self.accd_cb)
layout.addWidget(self.cmpd_cb)
layout.addWidget(self.tx_cb)
self.insertWidget(label)
self.insertWidget(frame)
self.insertWidget(self.charting_gb)
self.insertWidget(self.course_gb)
self.set_dentist()
self.set_default_values()
self.enableApply()
self.choose_form_widget = ChooseFormWidget(self)
self.set_advanced_but_text(_("select form(s) to print"))
self.add_advanced_widget(self.choose_form_widget)
self.course_gb.toggled.connect(self.toggle_cbs)
self.charting_gb.toggled.connect(self.toggle_cbs)
示例13: __init__
# 需要导入模块: from openmolar.qt4gui.dialogs.base_dialogs import ExtendableDialog [as 别名]
# 或者: from openmolar.qt4gui.dialogs.base_dialogs.ExtendableDialog import __init__ [as 别名]
def __init__(self, serialno, courseno, parent=None):
ExtendableDialog.__init__(self, parent, remove_stretch=True)
self.setWindowTitle(_("Edit Treatment Dialog"))
self.serialno = serialno
self.courseno = courseno
planning = QtGui.QMessageBox.question(self, _("Option"),
"%s<hr /><em>%s</em>" %(
_("Edit Completed items?"),
_("Choosing 'NO' will offer edit of planned items")
),
QtGui.QMessageBox.Yes|QtGui.QMessageBox.No,
QtGui.QMessageBox.Yes) == QtGui.QMessageBox.No
if planning:
header = _("Planned Items")
self.suffix = "pl"
else:
header = _("Completed Items")
self.suffix = "cmp"
self._treatment_course = None
self.widgets = {}
self.orig_values = {}
frame = QtGui.QFrame()
form_layout = QtGui.QFormLayout(frame)
header_label = QtGui.QLabel(header)
header_label.setAlignment(QtCore.Qt.AlignCenter)
tooth_atts = []
for att in treatment_course.CURRTRT_ROOT_ATTS:
widg = UpperCaseLineEdit()
self.widgets[att] = widg
if re.match("[ul][lr][1-8]", att):
tooth_atts.append(att)
else:
form_layout.addRow(att, widg)
for att in sorted(tooth_atts):
form_layout.addRow(att.upper(), self.widgets[att])
scroll_area = QtGui.QScrollArea()
scroll_area.setWidget(frame)
scroll_area.setWidgetResizable(True)
self.insertWidget(header_label)
self.insertWidget(scroll_area)
self.add_advanced_widget(QtGui.QLabel(_("No Advanced Options")))
QtCore.QTimer.singleShot(100, self.load_values)
示例14: __init__
# 需要导入模块: from openmolar.qt4gui.dialogs.base_dialogs import ExtendableDialog [as 别名]
# 或者: from openmolar.qt4gui.dialogs.base_dialogs.ExtendableDialog import __init__ [as 别名]
def __init__(self, om_gui=None):
ExtendableDialog.__init__(self, om_gui)
self.om_gui = om_gui
message = (_("Alterations to an existing Denture"))
self.setWindowTitle(message)
self.header_label = QtWidgets.QLabel(message)
self.header_label.setAlignment(QtCore.Qt.AlignCenter)
self.odu_le = UpperCaseLineEdit()
self.odl_le = UpperCaseLineEdit()
self.set_default_lineedit(self.odl_le)
self.wizard_widget = QtWidgets.QStackedWidget()
page0 = PageZero(self)
page1 = PageOne(self)
page2 = PageTwo(self)
page3 = PageThree(self)
page4 = PageFour(self)
page5 = PageFive(self)
accept_page = AcceptPage(self)
self.wizard_widget.addWidget(page0)
self.wizard_widget.addWidget(page1)
self.wizard_widget.addWidget(page2)
self.wizard_widget.addWidget(page3)
self.wizard_widget.addWidget(page4)
self.wizard_widget.addWidget(page5)
self.wizard_widget.addWidget(accept_page)
self.insertWidget(self.header_label)
self.insertWidget(self.wizard_widget)
frame = QtWidgets.QFrame()
layout = QtWidgets.QFormLayout(frame)
layout.addRow(_("Upper Denture"), self.odu_le)
layout.addRow(_("Lower Denture"), self.odl_le)
self.add_advanced_widget(frame)
self.next_but = self.button_box.addButton(
_("Next"), self.button_box.ActionRole)
self.apply_but.hide()
self.odu_le.textChanged.connect(self.enable_apply)
self.odl_le.textChanged.connect(self.enable_apply)
self.odu_le.editingFinished.connect(self.advanced_apply)
self.odl_le.editingFinished.connect(self.advanced_apply)
示例15: __init__
# 需要导入模块: from openmolar.qt4gui.dialogs.base_dialogs import ExtendableDialog [as 别名]
# 或者: from openmolar.qt4gui.dialogs.base_dialogs.ExtendableDialog import __init__ [as 别名]
def __init__(self, om_gui=None):
ExtendableDialog.__init__(self, om_gui)
self.om_gui = om_gui
message = _("Add A New Denture To The Treatment Plan")
self.setWindowTitle(message)
self.header_label = WarningLabel(message)
self.ndu_le = UpperCaseLineEdit()
self.ndl_le = UpperCaseLineEdit()
self.set_default_lineedit(self.ndl_le)
self.wizard_widget = QtWidgets.QStackedWidget()
page0 = PageZero(self)
page0.finished_signal.connect(self.next_widget)
page1 = PageOne(self)
page2 = PageTwo(self)
page3 = PageThree(self)
page4 = PageFour(self)
accept_page = AcceptPage(self)
self.wizard_widget.addWidget(page0)
self.wizard_widget.addWidget(page1)
self.wizard_widget.addWidget(page2)
self.wizard_widget.addWidget(page3)
self.wizard_widget.addWidget(page4)
self.wizard_widget.addWidget(accept_page)
self.insertWidget(self.header_label)
self.insertWidget(self.wizard_widget)
frame = QtWidgets.QFrame()
layout = QtWidgets.QFormLayout(frame)
layout.addRow(_("Upper Denture"), self.ndu_le)
layout.addRow(_("Lower Denture"), self.ndl_le)
self.add_advanced_widget(frame)
self.next_but = self.button_box.addButton(_("Next"), self.button_box.ActionRole)
self.apply_but.hide()
self.ndu_le.textChanged.connect(self.enable_apply)
self.ndl_le.textChanged.connect(self.enable_apply)
self.ndu_le.editingFinished.connect(self.advanced_apply)
self.ndl_le.editingFinished.connect(self.advanced_apply)