Skip to content

Commit

Permalink
Fixed a math issue where the bottommost row of buttons wouldn't show …
Browse files Browse the repository at this point in the history
…if it contained fewer than 4 buttons
  • Loading branch information
Go1den committed Mar 7, 2023
1 parent 744a449 commit 206bd1c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,8 @@ def createButtons(self):
if counter % 4 == 3:
y = y + 40
counter += 1
if counter % 4 != 0: # the bottom most row of buttons won't show if it contains fewer than 4 buttons unless we do this
y = y + 40
self.setFixedSize(880, y)

def createButton(self, buttonText, x, y):
Expand Down

0 comments on commit 206bd1c

Please sign in to comment.