-3
我試圖製作一個小程序,以更好地瞭解tkinter如何在Python中工作。如何設置圖標並更新我的tkinter窗口的標題?
因此,我想知道如何設置圖標並更新tkinter窗口的標題。
我已經寫了下面的代碼,任何人都可以建議如何在這個腳本中實現上述內容?
from Tkinter import *
import Tkinter as Tk
import ttk
class Test(Tk.Tk):
def __init__(self, *args, **kwargs):
Tk.Tk.__init__(self, *args, **kwargs)
app = Test()
app.state("zoomed")
app.mainloop()
# I'm having problems with this could I get any help?
app.wm_iconbitmap('xxxxxxx.ico')
app.title('Vikings Lore')
請將您的代碼作爲文本發佈,而不是圖像。 –
你問過這個問題嗎?任何基礎教程都應該涵蓋這一點 – Lafexlos
不要再說了! [遊覽],[問],[MCVE] –