[Python] How can I save a local file using tkinter with filedialog.askopenfilename

Discussão em 'Python' iniciado por Stack, Novembro 21, 2025.

  1. Stack

    Stack Membro Participativo

    How can I treat a file when the client imports a local file as a variable and using it later?


    def getFile():
    return filedialog.askopenfilename()


    from operation.encryption import getFile
    button_encrypt = tk.Button(layoutframe, text="Encrypt", fg="green", command=getFile)

    Continue reading...

Compartilhe esta Página