Open Babber opened 1 year ago
I have tried to set the scaling with my_w.tk.call('tk', 'scaling', 2)
in the above example, but it did not help. In my view, minsize
(or its first element) should be multiplied by a scaling factor, like root.winfo_screenwidth()/root.winfo_screenmmwidth()*25.4/72
. Otherwise the numbers in the widget won't be visible on high DPI displays, which are mostly scaled.
Or maybe the scaling should rather be done by something like
my_w.tk.call('tk', 'scaling', tkFont.Font(root=my_w, name='TkDefaultFont', size=10, exists=True).measure('0')/8)
where import tkinter.font as tkFont
.
Desktop (please complete the following information):
ttkbootstrap version: 1.10.1 OS: Linux Mint
Describe the bug
When clicking on the button of the DateEntry widget, a calendar popup appears, but it is so narrow that only the first digits of the numbers can be seen. The button for moving to the next month is also off the popup. Maybe
minsize
in the DatePickerDialog class is set too low? Could this be tweaked without editing the source code?..To Reproduce
Expected behavior
To see all the days of the month that is both digits, to see the whole name of the current month followed by the button to jump to the next month.
Screenshots
Additional context
My temporary fix is to change
minsize=(226, 1)
tominsize=(452, 1)
indialogs.py
.