- 内置库,如果没有运行 sudo apt-get install python-tk
- 3.0一下用import Tkinter
- 3.0及以上用import tkinter, tkinter.Tk()
from Tkinter import *
a = Tk()
a.wm_title("my friend")
b = Label(a, text = "my friend is she")
b.pack()
a.mainloop()
- 不支持3.0以上
- sudo apt-get install python-wxgtk2.8 python-wxtools wx2.8-i18n libwxgtk2.8-dev libgtk2.0-dev