I'm developing a file compressor in python as a college project. It creates files of a new extension, so its files haven't an icon yet. Then I wanna put an icon on these files, it'd be like the extension symbol. I need some way for my program put an icon on its files. I couldn't get a method or function to do that, so I searched for terminal commands that do it. Then I found the "gio set" command and using the "system" function from "os" package I got to do my program put icons on its files. However, it only works on Linux cuz "gio set" is a Linux Terminal Command.
What I wanna know is if there is some cmd command to do the same on windows or if there is any method or function in python to resolve my problem, could someone help me?
https://stackoverflow.com/questions/67309747/how-to-change-a-file-icon-in-python April 29, 2021 at 09:06AM
没有评论:
发表评论