-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Adds the class `AdvancedDialogForm` & tests/example; - Deprecates `getWidgetStates` to be `getSavedWidgetStates`.
- Loading branch information
1 parent
7063e68
commit b0e70df
Showing
7 changed files
with
620 additions
and
178 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import sys | ||
|
||
import utilitiesForExamples | ||
from PySide2 import QtWidgets | ||
|
||
from eqt.ui.FormDialog import AdvancedFormDialog | ||
from eqt.ui.UIFormWidget import FormWidget | ||
|
||
|
||
def run_example(): | ||
parent = FormWidget(parent=None) | ||
# open advanced dialog button | ||
pb = QtWidgets.QPushButton(parent) | ||
pb.setText("Open Advanced Dialog") | ||
pb.clicked.connect(lambda: advanced_dialog.exec()) | ||
parent.addSpanningWidget(pb, 'button_advanced') | ||
# extra button | ||
extra_button = QtWidgets.QPushButton(parent) | ||
extra_button.setText("Extra button") | ||
parent.addSpanningWidget(extra_button, 'extra_button') | ||
# create dialog | ||
advanced_dialog = AdvancedFormDialog(parent=parent, title='Example', | ||
parent_button_name='button_advanced') | ||
# all widgets | ||
utilitiesForExamples.addWidgetsToExample(advanced_dialog) | ||
for name in utilitiesForExamples.list_all_widgets(): | ||
advanced_dialog.displayWidgetValueOnParent(name) | ||
# show | ||
parent.show() | ||
|
||
|
||
if __name__ == "__main__": | ||
app = QtWidgets.QApplication(sys.argv) | ||
run_example() | ||
sys.exit(app.exec_()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.