-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_tkinter_3.py
More file actions
59 lines (41 loc) · 1.39 KB
/
test_tkinter_3.py
File metadata and controls
59 lines (41 loc) · 1.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
from tkinter import *
from tkinter.ttk import *
class MyFrame(Frame):
def __init__(self, master):
Frame.__init__(self, master)
self.master = master
self.master.title("고객 입력")
self.pack(fill=BOTH, expand=True)
# 성명
frame1 = Frame(self)
frame1.pack(fill=X)
lblName = Label(frame1, text="성명", width=10)
lblName.pack(side=LEFT, padx=10, pady=10)
entryName = Entry(frame1)
entryName.pack(fill=X, padx=10, expand=True)
# 회사
frame2 = Frame(self)
frame2.pack(fill=X)
lblComp = Label(frame2, text="회사명", width=10)
lblComp.pack(side=LEFT, padx=10, pady=10)
entryComp = Entry(frame2)
entryComp.pack(fill=X, padx=10, expand=True)
# 특징
frame3 = Frame(self)
frame3.pack(fill=BOTH, expand=True)
lblComment = Label(frame3, text="특징", width=10)
lblComment.pack(side=LEFT, anchor=N, padx=10, pady=10)
txtComment = Text(frame3)
txtComment.pack(fill=X, pady=10, padx=10)
# 저장
frame4 = Frame(self)
frame4.pack(fill=X)
btnSave = Button(frame4, text="저장")
btnSave.pack(side=LEFT, padx=10, pady=10)
def main():
root = Tk()
root.geometry("600x550+100+100")
app = MyFrame(root)
root.mainloop()
if __name__ == '__main__':
main()