entry

예제 # python 3.4 from tkinter import * root = Tk() class GUI: def __init__(self, master): f = Frame(master) Entry(f, width=40).pack(side=LEFT) Button(f, text = "OK", fg="red", command=master.quit).pack(side=LEFT) Button(f, text = "CANCEL", fg="blue", command=master.quit).pack(side=LEFT) f.pack() myGUI = GUI(root) root.mainloop() 결과화면
쓴웃음
'entry' 태그의 글 목록