How to create button which shows state select/not selected #2328
chess-levin
started this conversation in
General
Replies: 2 comments
-
It would be easier to use CTkRadioButton. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hi, i'm kinda new to programming, but wouldn't it be possible to create like a command that, after a button is pressed, changes the color value the button, or maybe changes the image to smth different? Then it would look a little like this def button_pressed(): but then again, i'm really new, but this is how I would expect it to look like, but idk how it works with colors and buttons with CTk... |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'd like to visualize the selection state of the buttons in my vlc-interface-app. The user can select on favorite-list and I'd like to show which one is active. It's more less the logic of a set of radio-buttons. Push on button and the other button will be unselected, but I need big buttons, because it runs on a touch display.
I've started some code by extending
CTKButton
, but I don't know how/where to intercept the button pushed event. Or would it be easier to use a CTkRadioButton and replace the selected circle by changing the background color of the radio button?Beta Was this translation helpful? Give feedback.
All reactions