CustomTkinter icon indicating copy to clipboard operation
CustomTkinter copied to clipboard

Dynamic resizing not working in CTkSwitch, CTkRadioButton and CTkCheckBox

Open Akascape opened this issue 3 years ago • 6 comments
trafficstars

Hello @TomSchimansky, I am making a widget maker for customtkinter which look like this

https://user-images.githubusercontent.com/89206401/197396161-26f89c59-d326-4ca7-b572-2cb2834b6870.mp4

I made the same for all the other widgets but some widgets like CTkSwitch are not resizing on configuring the width/height. This is what happening with CTkSwitch:

https://user-images.githubusercontent.com/89206401/197396357-71b1b305-9956-4fba-8663-0352700b1c4d.mp4

You can see that it is not able to resize itself on configuring. This is happening with the radio button and checkbox too, What can I do to fix this?

Akascape avatar Oct 23 '22 14:10 Akascape

The checkbox, switch and radiobutton widgets actually resize, but the switch itself and the text obviously don't resize. You can see it if you set bg_color="red".

TomSchimansky avatar Oct 23 '22 18:10 TomSchimansky

@TomSchimansky Is there any way/parameter to resize the width/height of the switch part only and not the text.

Akascape avatar Oct 23 '22 18:10 Akascape

Not in the current version. But in the next version 5.0.0 there will be switch_width, switch_height and checkbox_width...

TomSchimansky avatar Oct 23 '22 18:10 TomSchimansky

@TomSchimansky Release date for 5.0.0?

Akascape avatar Oct 23 '22 18:10 Akascape

In the next days...

TomSchimansky avatar Oct 23 '22 18:10 TomSchimansky

hopefully...

TomSchimansky avatar Oct 23 '22 18:10 TomSchimansky

Version 5 is released now.

TomSchimansky avatar Dec 06 '22 22:12 TomSchimansky