from Tkinter import * #Imports library def functionality(): print 'hi' print 'doggy dog' def SecondFunction(): label = Label(root, text = 'jimmy poo', fg = 'blue') label.pack() root = Tk() #This creates a window, but it will not appear bobby = Button(root, text = 'Press', command = functionality, fg = 'white', bg = 'black') bobby.pack() jimmy = Button(root, command = SecondFunction, text = 'I am jimmy') jimmy.pack() label = Label(root, text = 'hello') label.pack() textbox = Text(root) textbox.pack() listbox = Listbox(root) #This creates a listbox inside root, it won't appear listbox.pack() #This packs the listbox so it would appear list = ['nothing'] print list for item in list: listbox.insert(END, item) #Must be indented root.mainloop() #This will make the window appear(always needs to be last line)