Skip to content

Commit fbe0345

Browse files
committed
Update some comments
1 parent 38109c7 commit fbe0345

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pyqt-calculator-tutorial/pycalc/pycalc.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,12 +87,12 @@ def _createButtons(self):
8787
'+': (3, 3),
8888
'=': (3, 4),
8989
}
90-
# Create the buttons
90+
# Create the buttons, and add them to the grid layout
9191
for btn_text, pos in buttons.items():
9292
self.buttons[btn_text] = QPushButton(btn_text)
9393
self.buttons[btn_text].setFixedSize(40, 40)
9494
buttonsLayout.addWidget(self.buttons[btn_text], pos[0], pos[1])
95-
# Add the buttons to the general layout
95+
# Add buttonsLayout to the general layout
9696
self.generalLayout.addLayout(buttonsLayout)
9797

9898
def setDisplayText(self, text):

0 commit comments

Comments
 (0)