Skip to content

Disable and enable multiple checkboxes using radiobutton #563

Answered by Akascape
ntahlahweh asked this question in Q&A
Discussion options

You must be logged in to vote

@ntahlahweh You have to define the checkbox widget variables properly, here is your modified program:

from tkinter import *
import customtkinter

customtkinter.set_appearance_mode("System")  # Modes: "System" (standard), "Dark", "Light"
customtkinter.set_default_color_theme("blue")  # Themes: "blue" (standard), "green", "dark-blue"
root = customtkinter.CTk()   

root.minsize(300, 300) 
dc_ma1 = ["7190", "7189", "6264", "6262"]
dc_ma1_l=[str(i) for i in range(len(dc_ma1))]
print (dc_ma1_l)
selected_dc=[]

root.grid_columnconfigure(0, weight=1)
root.grid_rowconfigure(0, weight=0)
frame_lower_left = customtkinter.CTkFrame(master=root, corner_radius= 0)
frame_lower_left.grid(row=1, column=0, s…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@ntahlahweh
Comment options

@Akascape
Comment options

Answer selected by ntahlahweh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants