【问题标题】:Im trying to change the title of my tk window but it doesn't change [duplicate]我试图更改我的 tk 窗口的标题,但它没有改变 [重复]
【发布时间】:2021-12-19 14:17:21
【问题描述】:
from tkinter import*
root = Tk()

root['bg'] = 'dark blue'
root.title = ('Quiz')
root.mainloop()

我尝试了很多解决方案,但它们可能不起作用。有人可以帮忙吗?

【问题讨论】:

    标签: python tkinter


    【解决方案1】:

    使用

    root.title('Quiz')
    

    而不是

    root.title = ('Quiz')
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-01-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-06-21
      相关资源
      最近更新 更多