# L-30 MCS 260 Mon 5 Nov 2007 : guihello.py # # Hello world with a Graphical User Interface. # The code below displays "Hello World!" in a # new window, using the Tkinter GUI library. from Tkinter import * top = Tk() # top is the new window # Label is a widget to design the interface Lbl = Label(top,text="Hello World!",\ width=20,height=5) # to arrange the widget in a window we call Lbl.pack() # the geometry manager top.mainloop() # enter main event loop