[issue45796] Using tab to cycle through tkinter widgets breaks foreground styling

2021-11-26 Thread Ned Deily
Ned Deily added the comment: This issue was already closed under the presumption that what you described is Tk behavior. tkinter is the module in the Python standard library that provides the “glue” to the third-party TCL and Tk libraries; it is pretty much a thin wrapper that provides little

[issue45796] Using tab to cycle through tkinter widgets breaks foreground styling

2021-11-26 Thread Chris Eykamp
Chris Eykamp added the comment: If we decide that this is a tkinter bug (and that the Python part is working properly), does that mean that we close this ticket and rely on the upstream provider to fix the problem? I don't know how jurisdiction works with core libraries shipped with Python.

[issue45796] Using tab to cycle through tkinter widgets breaks foreground styling

2021-11-17 Thread Ned Deily
Ned Deily added the comment: For the record, the Tk issue opened for this is at: https://core.tcl-lang.org/tk/tktview?name=300bad1beb -- nosy: +ned.deily ___ Python tracker __

[issue45796] Using tab to cycle through tkinter widgets breaks foreground styling

2021-11-17 Thread Ned Deily
Change by Ned Deily : -- resolution: -> third party stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bu

[issue45796] Using tab to cycle through tkinter widgets breaks foreground styling

2021-11-16 Thread Chris Eykamp
Chris Eykamp added the comment: Thanks for the clarification. I don't want to belabor the point, but if you observe what happens as you hit tab and cycle through the widgets, the way the color changes cannot be intended behavior, and makes no sense from any rational UI perspective. I do

[issue45796] Using tab to cycle through tkinter widgets breaks foreground styling

2021-11-16 Thread E. Paine
E. Paine added the comment: > please don't declare this "not a bug" until you've tested it on Windows Sorry, I didn't explain my reasoning for that resolution. I did test it on Windows, but my trail of though went something like: "unexpected behaviour doesn't necessarily mean it's a bug". Yo

[issue45796] Using tab to cycle through tkinter widgets breaks foreground styling

2021-11-16 Thread Chris Eykamp
Chris Eykamp added the comment: The behavior I described is definitely a bug, though it may be (and I suspect is) Windows specific. You may also be right that the problem is upstream, but please don't declare this "not a bug" until you've tested it on Windows. -- nosy: +watusimoto2

[issue45796] Using tab to cycle through tkinter widgets breaks foreground styling

2021-11-14 Thread E. Paine
E. Paine added the comment: I believe this is just because the `selectbackground` is only shown when the widget has focus. Try, for example, only selecting part of the text and then tabbing off. Therefore, I think this is not a bug. The only thing which makes me slightly doubt myself is that

[issue45796] Using tab to cycle through tkinter widgets breaks foreground styling

2021-11-12 Thread Chris Eykamp
New submission from Chris Eykamp : Attached is a slightly modifed example of the code sample in Bryan Oakley's response to: https://stackoverflow.com/questions/30337351/how-can-i-ensure-my-ttk-entrys-invalid-state-isnt-cleared-when-it-loses-focus I have modified it by changing the style.map t

[issue45796] Using tab to cycle through tkinter widgets breaks foreground styling

2021-11-12 Thread Chris Eykamp
Chris Eykamp added the comment: I'll add that when the red text incorrectly turns black, on my display, I can see a very subtle red halo, as if the text is being printed first as red, then as black in a second pass. -- ___ Python tracker