import tkinter import json import paramiko window = tkinter.Tk() settings =[] customer_code = '' surgery_date = '' with open('./settings.json', encoding='utf-8')as json_file: json_data = json.load(json_file) settings.append(json_data['window_name']) settings.append(json_data['window_position']) settings.append(json_data['branch_location']) settings.append(json_data['surgery_room_number']) window.title(settings[0]) window.geometry(settings[1]) window.resizable(False,False) label_customer_code = tkinter.Label(window, text="고객번호(지점 번호 제외 7자리)") label_surgery_date = tkinter.Label(window, text="일자(yyyymmdd)") # def fillForm(): def fillCustomerCode(event): customer_code = str(entry_customer_code.get()) surgery_date = str(entry_surgery_date.get()) print(customer_code, surgery_date) # def fillSurgeryDate(): entry_customer_code = tkinter.Entry(window) entry_surgery_date = tkinter.Entry(window) button_confirm = tkinter.Button(window, text="입력완료", width=20, height=2) button_confirm.bind("", fillCustomerCode) label_customer_code.pack() entry_customer_code.pack() label_surgery_date.pack() entry_surgery_date.pack() button_confirm.pack() window.mainloop()