Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue #960 details: Python Interpreter Window, font color problem #961

Open
ocarillo opened this issue Jul 23, 2019 · 19 comments
Open

Issue #960 details: Python Interpreter Window, font color problem #961

ocarillo opened this issue Jul 23, 2019 · 19 comments

Comments

@ocarillo
Copy link

I tested with several versions including the last one 3.6.1 and I always have the same problem. I open the program, change the Output item as you suggest, and the color of the output text remains unchanged. I took some captures to show the problem:

In picture one I change the color of the output and set to clLime (#00FF00)
In picture two, you can see that the color of the font remains in default color #008080 when type something
In picture three, I open the dialog again and the color doesn't remain in clLime, It has changed to the default color.

image

image

image

Originally posted by @ocarillo in #960 (comment)

@pyscripter
Copy link
Owner

In the steps descriped in #960 Are you doing step 5

  1. Click some other element for the color to be entered.

before pressing OK?

@ocarillo
Copy link
Author

Yes, I followed your instructions and the problem remains. I changed the color of the Output item and the color of Traceback item. Then I pressed OK. If I open the Dialog again, the Traceback item has the color changed but the Output item doesn't, remaining with de default color.

image

It seems to be only with the Output item. The rest of items seems to be working OK (I tested some of then and no problems detected)

@pyscripter
Copy link
Owner

pyscripter commented Jul 23, 2019

Strange. It works here fine.

I see in your picture that "Hi John" is shown with Lime color (not teal as in your previous picture). Why are you saying that Output color is not changed?

@ocarillo
Copy link
Author

ocarillo commented Jul 23, 2019

The color changes in the right panel when you select the desired color, but after clicking OK, nothing happens ( this problems seem to happen only in Output item).

I attaching you the steps I follow:
First picture, I change the Output item to #00FF00 and the Traceback item to #9900FF. Then I press OK. Then I open the dialog again and you can see in the second picture that the Traceback item has the right color, but the Output item has set back to #008080.

I running Pyscripter 3.6.1 portable, but I have had the same problem in different versions, for example in 3.6 (portable and not portable and previous). I have this behaviour in different computers.

image

image

@pyscripter
Copy link
Owner

pyscripter commented Sep 23, 2019

I was able to reproduce the problem with PyScripter 3.6.1 following the exact instructions. (change Output and Traceback colors together).
However with the active version control branch I am not able to reproduce the problem. So it appears that some change introduced fixed the issue,
Could you please try the executable in this zip file and report whether you are still getting the same problem? It is for PyScripter 32 bits. Just replace the PyScripter.exe in an existing installation.

@ocarillo
Copy link
Author

Hi,

The problem persists with your executable attached. This is the steps to reproduce de issue (the same behaviour in all machines and all versions I tested):

  1. On Python Interpreter window -> Right mouse click -> Interpreter Editor options ...-> Syntax colors tab -> Select "Output" item -> Change to any color (you will see the "Hi John" text with the selected color) -> Press "OK" button.

  2. Open again the window: On Python Interpreter window -> Right mouse click -> Interpreter Editor options ...-> Syntax colors tab. Then, you will see that the "Hi John" text is again with the original color "#008080", not with the selected one.

This behaviour only happens with the "Output" item. Any other item, it keeps the color configuration without problems.

@pyscripter
Copy link
Owner

Could you please check again with PyScripter 3.6.2? Does the error persist if you delete/rename pyscripter.ini?

@ocarillo
Copy link
Author

I still have the same problem with 3.6.2. See the animated gif to see the problem. I tested the portable version 3.6.2, but the problem persists in all versions I tested.

Screen-Recording-_30-12-2019-9-30

@Chrysalida
Copy link

I still have the same problem with 3.6.2.

Dear author, have you solved the problem? I have exactly the same issue with my interpreter output color (Pyscrypter 3.6.3), and it would be great to know if there is a solution somewhere.

@Chrysalida
Copy link

the worst thing is that the output color remains the same no matter what color scheme I choose, no matter what color the output should be accordingly to this scheme. Moreover, to change the output background color isn't possible too!
The output just remains that dark cyan on the black, always!

@pyscripter
Copy link
Owner

Can you please try the following:

  • Use the latest PyScripter 3.6.3. (just to make sure we use the same version).
  • Find pyscripter.ini in your %APPDATA%\pyscripter directory (%APPDATA % is the value of the environment variable) and rename it. Then restart Pyscripter.

In other words, open a command prompt and do:
cd %APPDATA%\PyScripter
ren PyScripter.ini PyScripter.ini.bak

  • Then start PyScripter again, customize the Editor colors theme (Editor Options, Color Theme, Apply Theme)
  • Finally try again to customize the output foreground and background colors.

@Chrysalida
Copy link

Can you please try the following:
...

Still no effect after following yor instructions step-by-step exactly, but thank you anyway.
Actually, the unchangeable color wouldn't be a problem at all if it only was a little brighter - this dark cyan is just hard readable.

PyIssue

@pyscripter
Copy link
Owner

pyscripter commented Sep 11, 2020

@Chrysalida
Did you rename your Pyscripter.ini file in the %APPDATA%/Pyscripter folder?
Could you please post it here?

@ocarillo
Copy link
Author

Hi,

I solved the issue adding the following lines manually to pyscripter.ini file:

[Highlighters\Intepreter\OutputAttri]
Foreground=clLime

Doing this, the color font changes, (from menu, not working). It appears to be a problem only with this attribute (OutputAttri), as the rest of colors seems to work ok.

@pyscripter
Copy link
Owner

@ocarillo Thanks I will have another look to see why.

@Chrysalida
Copy link

Chrysalida commented Sep 17, 2020

Did you rename your Pyscripter.ini file in the %APPDATA%/Pyscripter folder?

Sure, I did even twice)

PyScripter_ini.zip

Here is my .ini - the fresh one.

@pyscripter
Copy link
Owner

pyscripter commented Oct 6, 2020

@Chrysalida I did try hard to reproduce this issue but I can't. Whenever I change the Output color in the Interpreter editor options, the change is reflected in the Interpreter Windows and saved and restored properly. I am not sure why you are facing this issue on your side.

You can implement the workaround by @ocarillo. i.e. edit the PyScripter.ini file and add (or change if it exists) [Highlighters\Intepreter\OutputAttri].

[Highlighters\Intepreter\OutputAttri]
Foreground=clLime

In the forthcoming version I will be using #00BBFF (brighter than the current #008888 Teal) as default output color which corresponds to
Foreground=16759552

@pyscripter
Copy link
Owner

Is this still an issue with version 4?

@ocarillo
Copy link
Author

Hi,

Let me answer the question. I confirm that the problem persists on new version 4.0.0.6 running on win 10 64 bit. It seems you haver forgotten to create the pyscripter.ini file with the "Highlighters\Intepreter\OutputAttri" tag inside. The rest or tags seems to work fine, just this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants