Skip to content

Bind a reset button to a function that turns it from DISABLED to NORMAL when multiple Combo Boxes are clicked #504

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

You must be logged in to vote

@amanashraf Here is your modified code with the solution you requested:

import customtkinter
import tkinter

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

class HomePage(customtkinter.CTk):
    
    WIDTH = 1000
    HEIGHT = 750

    def __init__(self):
        super().__init__()

        self.title("Movie/Series Selector")
        self.geometry(f"{HomePage.WIDTH}x{HomePage.HEIGHT}")


        # -------- create frame --------

        # configure grid layout
        self.grid_columnconfigure(1, weight=1)
        self.grid_rowconfigure(0, weight=1)

 …

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@amanashraf
Comment options

Answer selected by amanashraf
Comment options

You must be logged in to vote
1 reply
@amanashraf
Comment options

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