I wrote a small app recently that needs to be cross-platform. I used Python and Tkinter for the GUI.
It works great but recently I got a new laptop with a hiDPI screen and it seems to mess up the TreeView (see image below). The text height is too big compared to the height of the rows.
The picture is taken from a virtual machine running Windows 7 as a guest. I had to set the text to a larger size (125%) to be able to read on the screen (every other program I've tried work fine with this setting).
Is there any way to set the height of a row in Tkinter TreeView? I haven't seen anything like that in the docs.
s = ttk.Style()
s.configure('Treeview', rowheight=40) # repace 40 with whatever you need
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With