diff --git a/customtkinter/__init__.py b/customtkinter/__init__.py index 27b9d44..09e5eb6 100644 --- a/customtkinter/__init__.py +++ b/customtkinter/__init__.py @@ -1,4 +1,4 @@ -__version__ = "3.10" +__version__ = "3.11" from .widgets.customtkinter_input_dialog import CTkInputDialog from .widgets.customtkinter_button import CTkButton diff --git a/customtkinter/widgets/customtkinter_frame.py b/customtkinter/widgets/customtkinter_frame.py index 1d8e23b..11fda7b 100644 --- a/customtkinter/widgets/customtkinter_frame.py +++ b/customtkinter/widgets/customtkinter_frame.py @@ -94,6 +94,17 @@ class CTkFrame(tkinter.Frame): AppearanceModeTracker.remove(self.change_appearance_mode) super().destroy() + def winfo_children(self): + """ winfo_children of CTkFrame without self.canvas widget, + because it's not a child but part of the CTkFrame itself """ + + child_widgets = super().winfo_children() + try: + child_widgets.remove(self.canvas) + return child_widgets + except ValueError: + return child_widgets + def detect_color_of_master(self): """ detect color of self.master widget to set correct bg_color """ diff --git a/setup.py b/setup.py index e915c98..ac71104 100644 --- a/setup.py +++ b/setup.py @@ -12,7 +12,7 @@ import os setup(name="customtkinter", - version="3.10", + version="3.11", author="Tom Schimansky", license="Creative Commons Zero v1.0 Universal", url="https://github.com/TomSchimansky/CustomTkinter", @@ -20,7 +20,7 @@ setup(name="customtkinter", long_description_content_type="text/markdown", long_description="# CustomTkinter UI-Library\n\nDetailed Information: https://github.com/TomSchimansky/CustomTkinter", include_package_data=True, - packages=["customtkinter"], + packages=["customtkinter", "customtkinter.widgets"], classifiers=["Operating System :: OS Independent", "Programming Language :: Python :: 3", "License :: CC0 1.0 Universal (CC0 1.0) Public Domain Dedication"],