Python Forum

Full Version: tkinter filedialog and pickle - custom icon question.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Is there any way to add custom icon to the custom file?
Below is an example of the code. Is there any way to add custom icon to the specific extension of file?

file = filedialog.asksaveasfile(mode='wb', defaultextension=".a", filetypes=((".a", "*.a"),("All Files", "*.*")))
info = "info"
pickle.dump(info, file)

Any comment would be appreciated Heart Heart