CustomTkinter
CustomTkinter copied to clipboard
Feature request: disable/active tab of CTkTabview
It would be useful to be able disable/enable state tab(s) of CTkTabview:
import tkinter as tk
import customtkinter
tabview = customtkinter.CTkTabview(master=master, state=tk.ACTIVE)
tabview.grid(column=0, row=0)
tabview.add('Tab1')
tabview.add('Tab2')
tabview.tab("Tab2").configure(state=tk.DISABLED)
Result:
File "D:\dcspy_dev\venv\lib\site-packages\customtkinter\windows\widgets\ctk_frame.py", line 167, in configure
super().configure(require_redraw=require_redraw, **kwargs)
File "D:\dcspy_dev\venv\lib\site-packages\customtkinter\windows\widgets\core_widget_classes\ctk_base_class.py", line 135, in configure
check_kwargs_empty(kwargs, raise_error=True)
File "D:\dcspy_dev\venv\lib\site-packages\customtkinter\windows\widgets\utility\utility_functions.py", line 18, in check_kwargs_empty
raise ValueError(f"{list(kwargs_dict.keys())} are not supported arguments. Look at the documentation for supported arguments.")
ValueError: ['state'] are not supported arguments. Look at the documentation for supported arguments.