Python Forum
file icons have Firefox icon - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: file icons have Firefox icon (/thread-36799.html)



file icons have Firefox icon - Ricvourn - Mar-31-2022

Hi All
I'm new to Python. Have been trying to save files from Python to my desktop and when I save them they are saved as a Firefox browser window. I type .py as the file extension but it still keeps saving as a Firefox file. When I open the file it looks like when you right click on a webpage and select view page source.
It's the same when I download python files they only download as a Firefox icon. Can't save or download Python files so they have the little Python icon on them. Thank you for any suggestions.


RE: file icons have Firefox icon - deanhystad - Mar-31-2022

What os?


RE: file icons have Firefox icon - Ricvourn - Mar-31-2022

(Mar-31-2022, 10:44 PM)deanhystad Wrote: What os?

Windows


RE: file icons have Firefox icon - supuflounder - Mar-31-2022

(Mar-31-2022, 08:59 PM)Ricvourn Wrote: Hi All
I'm new to Python. Have been trying to save files from Python to my desktop and when I save them they are saved as a Firefox browser window. I type .py as the file extension but it still keeps saving as a Firefox file. When I open the file it looks like when you right click on a webpage and select view page source.
It's the same when I download python files they only download as a Firefox icon. Can't save or download Python files so they have the little Python icon on them. Thank you for any suggestions.

It sounds like you are using a Web-based Python development system. This means the "File" menu you see in the browser means "Save this Web page as a Web page". It does not mean "save this program as a file". So what happens is that either the development environment has a menu item to save the file on your machine, or it is saving it for you in the cloud, which is managed for you by the developers of that environment. You did not say how you are creating your Python programs, and that matters a lot.

Some of these cloud-based environments have a "download" option that lets you retrieve that file contents, some don't.

You might want to investigate systems that host themselves on your computer. You need to tell us what OS you are using. The mu editor is highly thought of by some (I am not in that set); I use Visual Studio Code, which is a free download from Microsoft. There are many other editors, including NotePad++, but I have never used it for Python development so I can't say much about it.


RE: file icons have Firefox icon - Ricvourn - Mar-31-2022

Wow that sounds great thanks for your reply. I'm using Windows 10 and I downloaded Python from Python.org. I open the IDLE and cntl n to open a new file. Then I'll save it to my desktop. No matter what I do it saves as a web page. I'm not using a code editor for Python. I normally use sublime text. I know of notepad but have only used it a couple of time and not for Python. Just getting started with Python.
Thanks again for you insight.