File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
pyqt-calculator-tutorial/examples Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments