mercoledì 6 gennaio 2016

GUI con Python: messaggi

La libreria per fare le GUI si chiama Tkinter 
ESEMPIO:

from Tkinter import *
# if you are working under Python 3, comment the previous line and comment out the following line
#from tkinter import *

root = Tk()

w = Label(root, text="Hello Tkinter!")
w.pack()

root.mainloop()

farà apparire:
Hello Tkinter Windows

Nessun commento:

Posta un commento