Tcl Source Code

View Ticket
Login
Ticket UUID: 4afc3ecb7e780cbce08ee4b901148ee81398602a
Title: text not visible in tk_getOpenFile
Type: Bug Version: 8.6.8
Submitter: anonymous Created on: 2023-02-03 11:50:13
Subsystem: 10. Objects Assigned To: nobody
Priority: 5 Medium Severity: Minor
Status: Closed Last Modified: 2023-02-06 21:29:12
Resolution: Works For Me Closed By: jan.nijtmans
    Closed on: 2023-02-06 21:29:12
Description:
When I invoke tk_getOpenFile in Tk version 8.5 or 8.6 in Linux, the directory and file icons appear, but the text of the file and directory names is not visible. (It's effectively "white" font against the white background.) Once I select and de-select a file or directory icon, the font becomes "black" and it appears as normal.

I did not have this issue with 8.4, but it appears with 8.5 or 8.6. The Tk distributions that I'm testing with are from Anaconda Python distributions.
User Comments: jan.nijtmans added on 2023-02-06 21:29:12:

So, this ticket can be closed


anonymous added on 2023-02-03 15:03:37:
Thanks. Your suggestion helped me isolate the issue. My use of color #0088cc seems to be causing the problem. If I use a slightly different color, the problem goes away. I'll follow up on the appropriate forum.

oehhar added on 2023-02-03 13:23:32:

Great ticket. Unfortunately, it should go to the Tk tracker https://core.tcl-lang.org/tk/timeline.

Here is Tcl.

May it be the case, that you have a dark mode enabled, e.g. that the standard foreground font is white ? I suppose, it would be helpful to:

  • Transfer this to a tk ticket
  • Give more information on the Window manager and colors there
  • Find out the exact version of TCL 8.6 (e.g. 8.6.x with x=10 for example)
  • Try a current Tcl/Tk and see, if there is the same issue

You may:

  • Start wish
  • Type "tk_getOpenFile" and hit enter
  • Does the shown dialog has the same issues ?

Take care, Harald


Attachments: