I would like to use the dialog boxes and message boxes without opening a tkinter window.
Can someone teach me how to disable the window, or how to recreate the window, or show me a different solution which allows me to do such things.
The messageboxes are the same all around, the one I want to try to take advantage of the most is filedialog.askopenfile, filedialog.askdirectory, filedialog.asksaveasfilename.
Something like this?
from Tkinter import *
import tkFileDialog
import tkMessageBox
Tk().withdraw()
tkFileDialog.askopenfilename()
tkMessageBox.showerror("message", "words")
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With