【问题标题】:Is there a way to make tkinter apps bigger on high dpi displays? [duplicate]有没有办法让 tkinter 应用程序在高 dpi 显示器上更大? [复制]
【发布时间】:2015-05-13 20:01:12
【问题描述】:

当我在运行 fedora 21 的 macbook pro 上启动带有 gui 的 python 应用程序时,tkinter gui 非常小。

有什么方法可以扩大规模以使其有用吗?

【问题讨论】:

    标签: python tkinter fedora dpi


    【解决方案1】:

    是的,请参阅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)
    

    【讨论】:

      猜你喜欢
      • 2012-05-06
      • 1970-01-01
      • 2023-03-21
      • 1970-01-01
      • 2019-07-08
      • 2010-10-12
      • 2021-03-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多