1from Tkinter import *
2
3ROOT = Tk()
4LABEL = Label(ROOT, text="Hello, world!")
5LABEL.pack()
6LOOP_ACTIVE = True
7while LOOP_ACTIVE:
8 ROOT.update()
9 USER_INPUT = raw_input("Give me your command! Just type \"exit\" to close: ")
10 if USER_INPUT == "exit":
11 ROOT.quit()
12 LOOP_ACTIVE = False
13 else:
14 LABEL = Label(ROOT, text=USER_INPUT)
15 LABEL.pack()