I am writing a program to encrypt files in Python. The file has its own personal extension (none other doesn’t fit my tasks), and so that the file was not without an icon, I drew my own in * .ico format. When creating a file through python ...

#something like this open('somefile.bc', 'w').close() 

I want my icon to be assigned to them (well, for example, how visual studio creates its project file with its extension and icon). I want to know if this is possible in Python, and if not, then maybe it is possible in c ++? I would be very grateful because I did not find the answer anywhere.

  • 2
    You probably need to register your extension in the system. How to Assign a Custom Icon to a File Type - VTT
  • I do not understand, I mean?, And if I want it to be on other computers that set themselves this program - ITishnik ArtStudio
  • Well, there the link describes how to set an icon for files with its extension. - VTT
  • I understood, thanks - ITishnik ArtStudio

0