12 lines
451 B
Python
12 lines
451 B
Python
import xlsxwriter
|
|
import tkinter as tk
|
|
from tkinter import filedialog
|
|
|
|
def upload_excel():
|
|
# Crea una finestra di dialogo per selezionare il file
|
|
root = tk.Tk()
|
|
root.withdraw() # Nasconde la finestra principale
|
|
file_path = filedialog.askopenfilename(title="Seleziona un file Excel",
|
|
filetypes=[("Tutti i file","*.*")])
|
|
excel_filename = r"{}".format(file_path)
|
|
return excel_filename |