I'm trying to create a filedialog that enables the user to navigate to a folder and type in a filename with wildcard characters. The returned filepath / string is used to filter the files to be processed by the BatchProcess operation.
I want something that would look a bit like this where the returned filefilter would be "C:/Users/Mike/Documents/fileexample*.txt where * is a wild card character. It seems tkinter filedialogs it won't allow you to enter *. Is there someway to turn off the filename validation?
import tkinter as tk
filefilter = tk.filedialog.asksaveasfilename()
for filename in BatchProcess(filefilter):
print(filename)