Skip to content

Commit

Permalink
UI: Allow vertical resizing, and use tk.E on Sizegrip
Browse files Browse the repository at this point in the history
* Without vertical resizing being allowed changing themes can result in
  either some of the bottom of the main frame being hidden, or there being
  extraneous extra space there.  NB: This still does **NOT** allow manually
  resizing vertically, that's a function of how the widgets are set up.

* Sizegrip needs to `sticky=tk.E` not `tk.SE`, as the latter creates extra
  vertical padding that we don't want.
  • Loading branch information
Athanasius committed Dec 26, 2023
1 parent 778063c commit d4d53e0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions EDMarketConnector.py
Original file line number Diff line number Diff line change
Expand Up @@ -616,9 +616,11 @@ def open_window(systray: 'SysTrayIcon') -> None:
self.status.grid(row=0, column=0, sticky=tk.W)

# Make the window resizable
master.resizable(True, False)
# Yes, we need to allow vertical resizing, else theme changing can
# cause the botttom of the UI to be irretrievably hidden.
master.resizable(True, True)
ttk_grip = ttk.Sizegrip(self.status_row, name='size_grip')
ttk_grip.grid(row=0, column=1, sticky=tk.SE)
ttk_grip.grid(row=0, column=1, sticky=tk.E)
#######################################################################

# Bottom 'status' line.
Expand Down

0 comments on commit d4d53e0

Please sign in to comment.