From 92de2c41831b16b7c969b22cbcb5e91e77368a1a Mon Sep 17 00:00:00 2001 From: Tom Schimansky Date: Thu, 7 Jul 2022 18:23:50 +0200 Subject: [PATCH] fixed CTkButton fg_color type hint --- customtkinter/widgets/ctk_button.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/customtkinter/widgets/ctk_button.py b/customtkinter/widgets/ctk_button.py index 87eb9b1..e8f8abd 100644 --- a/customtkinter/widgets/ctk_button.py +++ b/customtkinter/widgets/ctk_button.py @@ -13,8 +13,8 @@ class CTkButton(CTkBaseClass): """ button with border, rounded corners, hover effect, image support """ def __init__(self, *args, - bg_color: Union[str, Tuple[str, str]] = None, - fg_color: Union[str, Tuple[str, str]] = "default_theme", + bg_color: Union[str, Tuple[str, str], None] = None, + fg_color: Union[str, Tuple[str, str], None] = "default_theme", hover_color: Union[str, Tuple[str, str]] = "default_theme", border_color: Union[str, Tuple[str, str]] = "default_theme", text_color: Union[str, Tuple[str, str]] = "default_theme",