Я пытаюсь создать действительно базовое программное обеспечение, где пользователь может:
1) нажмите кнопку, чтобы импортировать файл .csv, и программа прочитает файл и распечатает его
2) нажмите другую кнопку, чтобы отсортировать данные определенным образом
3) Нажмите третью и последнюю кнопку, чтобы экспортировать эти данные как новый файл .csv
В основном мне нужна помощь по шагам 1 и 3 , я понятия не имею, как это сделать.
МОЙ КОД:
from tkinter import *
import tkinter
import tkinter.messagebox
top = Toplevel()
def UploadAction():
#Allows user to import a .csv of their choice into the program
#Python should read the file into the system and display the contents
def SortingCSV():
#Allows user to switch the contents of the file to the desired settings
def Export():
#Exports the manipulated data into a new .csv file and downloads it
B=Button(top, text ="Upload", command = UploadAction).grid(row=2,column=1)
B=Button(top, text ="Convert File", command = SortingCSV).grid(row=6, column=1)
B=Button(top, text ="Download File", command = Export).grid(row=7,column=1)
top.mainloop()