-1
私は、データを含むファイルを選択して要約結果を表示するために、GUIを使って凸包処理の3つの異なるアルゴリズムを実装する、Python言語でプログラムを作成する必要があります。GUI pythonファイルのインポート
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()
はそれが本当に助けたありがとう –