Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cdc7bde

Browse files
ksundenmeeseeksmachine
authored andcommitted
Backport PR #25371: Tk: Fix size of spacers when changing display DPI
1 parent 4fcd0a0 commit cdc7bde

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/backends/_backend_tk.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -675,8 +675,8 @@ def _rescale(self):
675675
# Text-only button is handled by the font setting instead.
676676
pass
677677
elif isinstance(widget, tk.Frame):
678-
widget.configure(height='22p', pady='1p')
679-
widget.pack_configure(padx='4p')
678+
widget.configure(height='18p')
679+
widget.pack_configure(padx='3p')
680680
elif isinstance(widget, tk.Label):
681681
pass # Text is handled by the font setting instead.
682682
else:

0 commit comments

Comments
 (0)