I was thinking that someone could instruct me to give a function to a file ... it's a little hard to explain So, I will try my best. >> Suppose I have an application (using wxPython) and we say that I have the file now that this file has been assigned to open with the application. Therefore, I double-click on the file and it opens the application. Now my question is, what should be written on the file, for example, open a dialogue? So we double-click on the file and it opens a dialog on the app?
PS: I know that I have to first associate the program with a certain file type to double click, but it is not that most of the API's platforms simply call that assistant file, On which you clicked as an argument, therefore Your file path will be in sys.argv [1] .
Comments
Post a Comment