Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Sep 29, 2023
1 parent e1f19ef commit 5d27296
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions examples/dialog_example_2.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ def __init__(self, parent=None):
def openFormDialog(self):
dialog = FormDialog(parent=self, title='Example')
dialog.Ok.clicked.connect(lambda: self.accepted())
### Example on how to add elements to the

### Example on how to add elements to the
# add input 1 as QLineEdit
qlabel = QtWidgets.QLabel(dialog.groupBox)
qlabel.setText("Input 1: ")
Expand Down Expand Up @@ -57,13 +57,13 @@ def openFormDialog(self):
dialog.exec()

def accepted(self):
print ("accepted")
print (self.dialog.widgets['input1_field'].text())
print (self.dialog.widgets['input2_field'].currentText())
print("accepted")
print(self.dialog.widgets['input1_field'].text())
print(self.dialog.widgets['input2_field'].currentText())
self.dialog.close()

def rejected(self):
print ("rejected")
print("rejected")


if __name__ == "__main__":
Expand Down

0 comments on commit 5d27296

Please sign in to comment.