【问题标题】:Is there any way to increase the icon size of the tkinter gui window有什么办法可以增加 tkinter gui 窗口的图标大小
【发布时间】:2019-12-05 12:26:26
【问题描述】:

我更改了我的 tkinter gui 的图标,但现在当我查看它时,它看起来有点小。那么,有什么办法可以增加窗口图标的大小呢?

【问题讨论】:

  • 你能把你的代码给我们看看,这样对你有帮助会更容易
  • 有问题的显示带有图标的图像。

标签: python user-interface tkinter icons


【解决方案1】:

如果您说的是主窗口(顶层) 你可以使用

root = Tk()
root.geometry(‘500x500’) #px

否则你可以改变宽度,高度参数

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-02-09
    • 1970-01-01
    • 2013-01-01
    • 2016-01-29
    • 2014-04-20
    • 2021-01-10
    相关资源
    最近更新 更多