mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2026-10-25 01:06:05 +03:00
[#2595] Second Attempt - Treeview Clipping
This commit is contained in:
1 file changed
+6
@@ -13,6 +13,7 @@ import sys
|
||||
import webbrowser
|
||||
import tkinter as tk
|
||||
from tkinter import ttk
|
||||
import tkinter.font as tkfont
|
||||
from PIL import Image, ImageTk
|
||||
from typing import Callable, cast
|
||||
import requests
|
||||
@@ -173,6 +174,11 @@ class PluginBrowserMixIn:
|
||||
height=12,
|
||||
)
|
||||
|
||||
# Configure row height to prevent text clipping
|
||||
row_font = tkfont.Font(family='TkDefaultFont')
|
||||
style = ttk.Style()
|
||||
style.configure("Treeview", rowheight=int(row_font.metrics()['linespace'] * 1.1))
|
||||
|
||||
self.plugins_tree.heading(
|
||||
"name",
|
||||
# LANG: Plugin Browser Plug Name
|
||||
|
||||
Reference in new issue
Block a user