Python Forum
tkinter filedialog and pickle - custom icon question.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
tkinter filedialog and pickle - custom icon question.
#1
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
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Beginner question re: Tkinter geometry return2sender 3 943 Jun-19-2023, 06:19 PM
Last Post: deanhystad
  Tkinter GUI question texan1836 3 1,878 Apr-13-2023, 03:12 AM
Last Post: deanhystad
Exclamation [PyQt] Setting icon on QAction from outside QGuiApplication gradlon93 3 1,714 Jan-04-2023, 11:37 AM
Last Post: gradlon93
  [Tkinter] filedialog, open a file error liketocode 4 3,335 Dec-07-2022, 10:51 PM
Last Post: liketocode
  PyQt6 QAction with icon and string malonn 2 1,675 Sep-12-2022, 11:59 AM
Last Post: malonn
  simple tkinter question function call not opening image gr3yali3n 5 3,407 Aug-02-2022, 09:13 PM
Last Post: woooee
  how to remove icon ilyess68ysl 4 3,658 Oct-15-2021, 10:05 AM
Last Post: ilyess68ysl
  [Tkinter] question for a tkinter dialog box RobertAlvarez424 2 2,225 Aug-25-2021, 03:08 PM
Last Post: RobertAlvarez424
  Python tkinter question tablet Nick_tkinter 8 4,969 Mar-04-2021, 10:44 PM
Last Post: Larz60+
  tkinter slider question Nick_tkinter 1 2,474 Feb-22-2021, 01:31 PM
Last Post: deanhystad

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020