【发布时间】:2015-05-13 20:01:12
【问题描述】:
当我在运行 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)
【讨论】: