Jeong Geol Kim 4 лет назад
Родитель
Сommit
8082851c96
1 измененных файлов: 29 добавлений и 3 удалений
  1. 29
    3
      main.py

+ 29
- 3
main.py Просмотреть файл

@@ -1,10 +1,12 @@
1 1
 import tkinter
2 2
 import json
3
+import paramiko
3 4
 
4 5
 
5 6
 window = tkinter.Tk()
6 7
 settings =[]
7
-
8
+customer_code = ''
9
+surgery_date = ''
8 10
 
9 11
 with open('./settings.json', encoding='utf-8')as json_file:
10 12
     json_data = json.load(json_file)
@@ -13,9 +15,33 @@ with open('./settings.json', encoding='utf-8')as json_file:
13 15
     settings.append(json_data['branch_location'])
14 16
     settings.append(json_data['surgery_room_number'])
15 17
 
16
-
17
-
18 18
 window.title(settings[0])
19 19
 window.geometry(settings[1])
20
+window.resizable(False,False)
21
+
22
+label_customer_code = tkinter.Label(window, text="고객번호(지점 번호 제외 7자리)")
23
+label_surgery_date = tkinter.Label(window, text="일자(yyyymmdd)")
24
+
25
+# def fillForm():
26
+
27
+def fillCustomerCode(event):
28
+    customer_code = str(entry_customer_code.get())
29
+    surgery_date = str(entry_surgery_date.get())
30
+    print(customer_code, surgery_date)
31
+# def fillSurgeryDate():
32
+
33
+entry_customer_code = tkinter.Entry(window)
34
+entry_surgery_date = tkinter.Entry(window)
35
+button_confirm = tkinter.Button(window, text="입력완료", width=20, height=2)
36
+button_confirm.bind("<Button-1>", fillCustomerCode)
37
+
38
+
39
+label_customer_code.pack()
40
+entry_customer_code.pack()
41
+label_surgery_date.pack()
42
+entry_surgery_date.pack()
43
+
44
+
45
+button_confirm.pack()
20 46
 
21 47
 window.mainloop()

Загрузка…
Отмена
Сохранить