Skip to content

Commit 8419ff5

Browse files
committed
Preflight check corrections
1 parent f6485c0 commit 8419ff5

File tree

9 files changed

+14
-14
lines changed

9 files changed

+14
-14
lines changed

pyqt-calculator-tutorial/examples/dialog.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# filename: dialog.py
1+
# Filename: dialog.py
22

33
"""Dialog-Style application."""
44

@@ -19,17 +19,17 @@ def __init__(self, parent=None):
1919
"""Initializer."""
2020
super().__init__(parent)
2121
self.setWindowTitle('QDialog')
22-
dlg_layout = QVBoxLayout()
22+
dlgLayout = QVBoxLayout()
2323
formLayout = QFormLayout()
2424
formLayout.addRow('Name:', QLineEdit())
2525
formLayout.addRow('Age:', QLineEdit())
2626
formLayout.addRow('Job:', QLineEdit())
2727
formLayout.addRow('Hobbies:', QLineEdit())
28-
dlg_layout.addLayout(formLayout)
28+
dlgLayout.addLayout(formLayout)
2929
btns = QDialogButtonBox()
3030
btns.setStandardButtons(QDialogButtonBox.Cancel | QDialogButtonBox.Ok)
31-
dlg_layout.addWidget(btns)
32-
self.setLayout(dlg_layout)
31+
dlgLayout.addWidget(btns)
32+
self.setLayout(dlgLayout)
3333

3434

3535
if __name__ == '__main__':

pyqt-calculator-tutorial/examples/f_layout.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# filename: f_layout.py
1+
# Filename: f_layout.py
22

33
"""Form layout example."""
44

pyqt-calculator-tutorial/examples/g_layout.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# filename: g_layout.py
1+
# Filename: g_layout.py
22

33
"""Grid layout example."""
44

pyqt-calculator-tutorial/examples/h_layout.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# filename: h_layout.py
1+
# Filename: h_layout.py
22

33
"""Horizontal layout example."""
44

pyqt-calculator-tutorial/examples/hello.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# filename: hello.py
1+
# Filename: hello.py
22

33
"""Simple Hello World example with PyQt5."""
44

pyqt-calculator-tutorial/examples/main_window.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# filename: main_window.py
1+
# Filename: main_window.py
22

33
"""Main Window-Style application."""
44

pyqt-calculator-tutorial/examples/signals_slots.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# filename: signals_slots.py
1+
# Filename: signals_slots.py
22

33
"""Signals, and Slots example."""
44

pyqt-calculator-tutorial/examples/v_layout.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# filename: v_layout.py
1+
# Filename: v_layout.py
22

33
"""Vertical layout example."""
44

pyqt-calculator-tutorial/pycalc/pycalc.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env python3
22

3-
# filename: pycalc.py
3+
# Filename: pycalc.py
44

55
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
66
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
@@ -65,7 +65,7 @@ def _createButtons(self):
6565
"""Create the buttons."""
6666
self.buttons = {}
6767
buttonsLayout = QGridLayout()
68-
# btn_text | position on the QGridLayout
68+
# Button text | position on the QGridLayout
6969
buttons = {'7': (0, 0),
7070
'8': (0, 1),
7171
'9': (0, 2),

0 commit comments

Comments
 (0)