<分区>
当我在运行 fedora 21 的 macbook pro 上启动带有 gui 的 python 应用程序时 - tkinter gui 非常小。
有什么方法可以扩大它的使用范围吗?
<分区>
当我在运行 fedora 21 的 macbook pro 上启动带有 gui 的 python 应用程序时 - tkinter gui 非常小。
有什么方法可以扩大它的使用范围吗?
最佳答案
是的,参见 this question here .
你也可以 Google "python tkinter scale up DPI" , 这给出了 that作为 second link .
本质上,(如 the other question outlines ),您需要一个比例因子。这是基于理想化的 72 DPI。因此,对于 300 DPI 显示,您可能希望将系数设置为 4.0
(技术上为 4.166
):
root.tk.call('tk', 'scaling', 4.0)
关于python - 有没有办法让 tkinter 应用程序在高 dpi 显示器上更大?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28996640/