It is currently 13 Jul 2020, 17:05

• Featuring Members' Works (Image Attachments) •
1: member
2: member
3: member
4: member
5: member

GIMP/GL:  Tutorials | Tips | 🡆 Questions | Interests | Script Requests
Recommendations:  Index | Top 10
Resources:  Python-Fu Plug-ins | Scheme-Fu Scripts | GIMP
Python:  Lessons | Questions | Exercises
The Arts:  GIMPed | GIMPed Photos | Other | Contests | Public Domain Images | Isolated Images | Blender
Inkscape
Social:  Say Hello | Anything Goes | Shares | FCSP

Changed the normal Phyton Look. Why?

GIMP or GIMP LEARN forum related Questions
Issabella
Script Tester

Changed the normal Phyton Look. Why?

Post#1 by Issabella » 15 May 2020, 15:15


Please, I need your help to solve this problem.
I opened a phyton item using notepad to get information about the author of the plug-in. After that, closing the file, I realized that the whole phyton files had changed to the look of notepad but keeping the .py extension. Everything works correctly but I can't get that the items come back to the previous aspect.
What can I do to solve it?

I'm using Windows 10 and Gimp 2.10.18
Thank you so much in advance.
Issa
Issabella

Don’t be afraid to start over. It’s a new chance to rebuild what you want.
0

tim
GL Blogger

Post#2 by tim » 15 May 2020, 16:52


As long as you don't try to save it, it shouldn't change.
Maybe you're viewing it as word-wrap option.
You can try changing that under Format -> Word wrap. you can toggle that option see if that's what you want...
and just don't try to save then it's fine.
If you try to save you'll most likely end up with a .py.txt file because notepad tries to save everything as .txt file extension unless you explicitly tell it not to by changing the file option when saving like I think select all files that way it's not just .txt and then give it your own extension.
aka Tin
:tree_02:
Tin's: Favorite Index | Simple Art === fb4yt video search | fb4yt recent video views report
Lottery numbers from image | Interested Members in TLF
Paying for hosting is to support my hobby, and donating money made from ads to The Red Cross.
         
1

Blighty
Forum Member

Post#3 by Blighty » 15 May 2020, 17:05


Issabella wrote:
15 May 2020, 15:15
I opened a phyton item using notepad to get information about the author of the plug-in.
Short Answer:
Don’t use Notepad to open .py files
Use Notepad++ (free download)

Short Explanation
Windows uses 2 characters for a new line (carriage return, line feed)
Linux uses only 1 character
Lines don’t display correctly using Notepad
Notepad++ is intelligent enough to display lines correctly
GIMP Learn rocks...
1

Tom
Forum Member

Post#4 by Tom » 15 May 2020, 17:53


If you say right clicked the .py file and used open with notepad and the box was checked to always open with notepad it will change the look of the file.
Scroll down to method #2 https://www.windowschimp.com/change-wha ... pens-file/
1

Issabella
Script Tester

Post#5 by Issabella » 15 May 2020, 20:05


Thank you so much for your help which has been so effective and quick.
I have already solved the problem. Thanks again as it was being a nightmare. Apparently I must have clicked on the wrong option "always" by mistake. But I have it currently solved. THANKS!!!!!!!
Issabella

Don’t be afraid to start over. It’s a new chance to rebuild what you want.
0


GIMP/GL:  Tutorials | Tips | 🡆 Questions | Interests | Script Requests
Recommendations:  Index | Top 10
Resources:  Python-Fu Plug-ins | Scheme-Fu Scripts | GIMP
Python:  Lessons | Questions | Exercises
The Arts:  GIMPed | GIMPed Photos | Other | Contests | Public Domain Images | Isolated Images | Blender
Inkscape
Social:  Say Hello | Anything Goes | Shares | FCSP

Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests