We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 38109c7 commit fbe0345Copy full SHA for fbe0345
pyqt-calculator-tutorial/pycalc/pycalc.py
@@ -87,12 +87,12 @@ def _createButtons(self):
87
'+': (3, 3),
88
'=': (3, 4),
89
}
90
- # Create the buttons
+ # Create the buttons, and add them to the grid layout
91
for btn_text, pos in buttons.items():
92
self.buttons[btn_text] = QPushButton(btn_text)
93
self.buttons[btn_text].setFixedSize(40, 40)
94
buttonsLayout.addWidget(self.buttons[btn_text], pos[0], pos[1])
95
- # Add the buttons to the general layout
+ # Add buttonsLayout to the general layout
96
self.generalLayout.addLayout(buttonsLayout)
97
98
def setDisplayText(self, text):
0 commit comments