I created a text Editor in Python using Tkinter, just a basic one. It has one feature that it can take another argument while opening, for example if in terminal I run
python editor.py example.txt
my python text editor will open the file "example.txt" in it.
I want any file to open in my text editor when I double click on that file, just like a .txt file opens in notepad when double-clicked, I want to open it in my text editor.
I cannot find any solution to this, please help me.