TomSchimansky / CustomTkinter

A modern and customizable python UI-library based on Tkinter
MIT License
11.33k stars 1.07k forks source link

Add conditional check for keyword argument 'value' in configure metho… #2412

Open Shubham25dec opened 4 months ago

Shubham25dec commented 4 months ago

the customtkinter.CTkRadioButton class' configure method throws an error when called with 'value' keyword argument eg: radio_button = CTkRadioButton(master) radio_button.configure(value = 2)

This is solved by adding an if statement to check for the 'value' kwarg and thus update the _value variable in the class.