Skip to content

Commit f6485c0

Browse files
committed
Stick to PyQt coding style
1 parent c497fad commit f6485c0

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

pyqt-calculator-tutorial/examples/dialog.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ def __init__(self, parent=None):
2020
super().__init__(parent)
2121
self.setWindowTitle('QDialog')
2222
dlg_layout = QVBoxLayout()
23-
form_layout = QFormLayout()
24-
form_layout.addRow('Name:', QLineEdit())
25-
form_layout.addRow('Age:', QLineEdit())
26-
form_layout.addRow('Job:', QLineEdit())
27-
form_layout.addRow('Hobbies:', QLineEdit())
28-
dlg_layout.addLayout(form_layout)
23+
formLayout = QFormLayout()
24+
formLayout.addRow('Name:', QLineEdit())
25+
formLayout.addRow('Age:', QLineEdit())
26+
formLayout.addRow('Job:', QLineEdit())
27+
formLayout.addRow('Hobbies:', QLineEdit())
28+
dlg_layout.addLayout(formLayout)
2929
btns = QDialogButtonBox()
3030
btns.setStandardButtons(QDialogButtonBox.Cancel | QDialogButtonBox.Ok)
3131
dlg_layout.addWidget(btns)

0 commit comments

Comments
 (0)