Skip to content

Commit

Permalink
Bug fixed: grids do not fill the screen.
Browse files Browse the repository at this point in the history
  • Loading branch information
ATATC committed Feb 14, 2024
1 parent 554dfb3 commit a9fdcb0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions leads_gui/prototype.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ def parse_layout(self, layout: list[list[str | Widget]]) -> list[list[Widget]]:
def layout(self, layout: list[list[str | Widget]]) -> None:
layout = self.parse_layout(layout)
t = _lcm(*tuple(map(len, layout)))
self.root().grid_columnconfigure(tuple(range(t)), weight=1)
for i in range(len(layout)):
row = layout[i]
length = len(row)
Expand Down

0 comments on commit a9fdcb0

Please sign in to comment.