add example images

This commit is contained in:
Tom Schimansky
2023-01-21 13:43:18 +01:00
parent 79d5da439b
commit dc751e46d3
12 changed files with 3 additions and 7 deletions

View File

@ -1,5 +1,3 @@
import tkinter
import customtkinter
import os
from PIL import Image
@ -17,7 +15,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/manual_integration_tests/test_images")
image_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), "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))