diff --git a/customtkinter/windows/widgets/ctk_button.py b/customtkinter/windows/widgets/ctk_button.py index 5b5b8f0..8dec387 100644 --- a/customtkinter/windows/widgets/ctk_button.py +++ b/customtkinter/windows/widgets/ctk_button.py @@ -395,7 +395,7 @@ class CTkButton(CTkBaseClass): self._image = self._check_image_type(kwargs.pop("image")) if isinstance(self._image, CTkImage): self._image.add_configure_callback(self._update_image) - require_redraw = True + self._update_image() if "state" in kwargs: self._state = kwargs.pop("state") diff --git a/examples/image_example.py b/examples/image_example.py index da10b81..37db095 100644 --- a/examples/image_example.py +++ b/examples/image_example.py @@ -17,7 +17,7 @@ class App(customtkinter.CTk): self.grid_columnconfigure(1, weight=1) # load images with light and dark mode image - image_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), "test_images") + image_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), "../test/manual_integration_tests/test_images") self.logo_image = customtkinter.CTkImage(Image.open(os.path.join(image_path, "CustomTkinter_logo_single.png")), size=(26, 26)) self.large_test_image = customtkinter.CTkImage(Image.open(os.path.join(image_path, "large_test_image.png")), size=(500, 150)) self.image_icon_image = customtkinter.CTkImage(Image.open(os.path.join(image_path, "image_icon_light.png")), size=(20, 20)) diff --git a/examples/test_images/bg_gradient.jpg b/examples/test_images/bg_gradient.jpg deleted file mode 100644 index 067658e..0000000 Binary files a/examples/test_images/bg_gradient.jpg and /dev/null differ diff --git a/examples/test_images/CustomTkinter_logo_single.png b/test/manual_integration_tests/test_images/CustomTkinter_logo_single.png similarity index 100% rename from examples/test_images/CustomTkinter_logo_single.png rename to test/manual_integration_tests/test_images/CustomTkinter_logo_single.png diff --git a/test/manual_integration_tests/test_images/add_folder_dark.png b/test/manual_integration_tests/test_images/add_folder_dark.png deleted file mode 100644 index dcf4f2d..0000000 Binary files a/test/manual_integration_tests/test_images/add_folder_dark.png and /dev/null differ diff --git a/test/manual_integration_tests/test_images/add_folder_light.png b/test/manual_integration_tests/test_images/add_folder_light.png deleted file mode 100644 index feff512..0000000 Binary files a/test/manual_integration_tests/test_images/add_folder_light.png and /dev/null differ diff --git a/examples/test_images/add_user_dark.png b/test/manual_integration_tests/test_images/add_user_dark.png similarity index 100% rename from examples/test_images/add_user_dark.png rename to test/manual_integration_tests/test_images/add_user_dark.png diff --git a/examples/test_images/add_user_light.png b/test/manual_integration_tests/test_images/add_user_light.png similarity index 100% rename from examples/test_images/add_user_light.png rename to test/manual_integration_tests/test_images/add_user_light.png diff --git a/test/manual_integration_tests/test_images/bell.png b/test/manual_integration_tests/test_images/bell.png deleted file mode 100644 index df3838f..0000000 Binary files a/test/manual_integration_tests/test_images/bell.png and /dev/null differ diff --git a/examples/test_images/chat_dark.png b/test/manual_integration_tests/test_images/chat_dark.png similarity index 100% rename from examples/test_images/chat_dark.png rename to test/manual_integration_tests/test_images/chat_dark.png diff --git a/examples/test_images/chat_light.png b/test/manual_integration_tests/test_images/chat_light.png similarity index 100% rename from examples/test_images/chat_light.png rename to test/manual_integration_tests/test_images/chat_light.png diff --git a/examples/test_images/home_dark.png b/test/manual_integration_tests/test_images/home_dark.png similarity index 100% rename from examples/test_images/home_dark.png rename to test/manual_integration_tests/test_images/home_dark.png diff --git a/examples/test_images/home_light.png b/test/manual_integration_tests/test_images/home_light.png similarity index 100% rename from examples/test_images/home_light.png rename to test/manual_integration_tests/test_images/home_light.png diff --git a/examples/test_images/image_icon_light.png b/test/manual_integration_tests/test_images/image_icon_light.png similarity index 100% rename from examples/test_images/image_icon_light.png rename to test/manual_integration_tests/test_images/image_icon_light.png diff --git a/examples/test_images/large_test_image.png b/test/manual_integration_tests/test_images/large_test_image.png similarity index 100% rename from examples/test_images/large_test_image.png rename to test/manual_integration_tests/test_images/large_test_image.png diff --git a/test/manual_integration_tests/test_images/settings.png b/test/manual_integration_tests/test_images/settings.png deleted file mode 100644 index 36e5d79..0000000 Binary files a/test/manual_integration_tests/test_images/settings.png and /dev/null differ