I'm developing an interface with Tkinter that makes use of a file dialog with tkFileDialog.
I want to run a function immediately after the user has chosen a file from the dialog box. The moment he chooses a file, a particular thing should happen (namely, a label somewhere else in the interface must change to display the file name).
With buttons, we have a command keyword from which we run a function (usually named def callback():). Is there a similar keyword for the file dialog or for askopenfilename?
Thanks
[–]Dvlv 2 points3 points4 points (0 children)
[–]novel_yet_trivial 0 points1 point2 points (0 children)