-1
파이썬 언어로 프로그램을 작성해야하는데, 이는 데이터가 들어있는 파일을 선택하고 요약 결과를 표시하는 GUI를 사용하여 볼록 헐 컴퓨팅을위한 3 가지 알고리즘을 구현합니다.GUI 파이썬 파일 임포트
GUI 용 tkniter를 사용하고 있습니다. PC에서 데이터 파일을 가져 와서 목록에 데이터를 저장하는 데 문제가 있습니다. 이 내 코드
def OpenFile():
filename = filedialog.askopenfilename()
lines = filename.readlines()
filename.close()
root = Tk()
root.title('convex hull')
root.geometry('400x300')
label1 = ttk.Label(root,text="Enter points").place(x=20,y=3)
label2 = ttk.Label(root,text = "Choose One of the algorithm to sort the points").place(x=0,y=60)
btn1= ttk.Button(root,text="Browse", command = OpenFile)
btn1.pack()
그것이 정말 도움을 주셔서 감사합니다 –