摘要:
顶层窗口协议from tkinter import * root = Tk() # explicit root trees = [('The Larch!', 'light blue'), ('The Pine!', 'light green'), ('The Giant Redwood!', 'r 阅读全文
摘要:
用类实现自定义主件 from tkinter import * class HelloButton(Button): def __init__(self, parent=None, **config): # add callback method Button.__init__(self, pare 阅读全文
摘要:
from tkinter import * root = Tk() 父实例 w = Label(root,text="hello") w.pack() root.mainloop() from tkinter import * widget = Label(None,text='hello') 会自 阅读全文