Closed GLWine closed 3 months ago
Looks good, but doesn't handle the case when the user
CTRL
-clicks the selected row, to deselect all. It should revert back to the system colours in that case:self.delete_button.configure(bg="SystemButtonFace", fg="black")
I thought so too, but I didn't know how to reset it, however is there something similar to SystemButonFace
for FG too?
For he is also not black, but a shade of grey
I'll check if this code works correctly
self.delete_button.configure(bg="SystemButtonFace", fg="SystemButtonText")
If it works, post the change
I'll check if this code works correctly
self.delete_button.configure(bg="SystemButtonFace", fg="SystemButtonText")
Ah that looks good, I didn't know there was a default for FG too - better than black
, I agree.
It seems to work... I honestly didn't think it was possible to select with control... I'm used to clicking on an empty part canceling the selection...
The delete button now becomes red only if one or more elements are selected, otherwise it remains grayed out and unclickable.