Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backport PR #25371 on branch v3.7.x (Tk: Fix size of spacers when changing display DPI) #25376

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/matplotlib/backends/_backend_tk.py
Original file line number Diff line number Diff line change
Expand Up @@ -675,8 +675,8 @@ def _rescale(self):
# Text-only button is handled by the font setting instead.
pass
elif isinstance(widget, tk.Frame):
widget.configure(height='22p', pady='1p')
widget.pack_configure(padx='4p')
widget.configure(height='18p')
widget.pack_configure(padx='3p')
elif isinstance(widget, tk.Label):
pass # Text is handled by the font setting instead.
else:
Expand Down