text not visible in tk_getOpenFile
Closed / Works For Me4afc3ecb7e780cbce08ee4b901148ee81398602aCreated 4 years agoUpdated 4 years ago
Descriptionplain2023-02-03 11:50:13
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.
oehharwiki2023-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
anonymousplain2023-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.
jan.nijtmanswiki2023-02-06 21:29:12
So, this ticket can be closed
Log in (anonymous is fine) to add a comment.