added image_example image for readme

This commit is contained in:
Tom Schimansky 2022-11-30 23:09:42 +01:00
parent f3d90821ce
commit 60c72a4289
3 changed files with 2 additions and 2 deletions

View File

@ -101,7 +101,7 @@ pass a PhotoImage object to the CTkButton with the ``image`` argument.
If you want no text at all you have to set ``text=""`` or you specify
how to position the text and image at once with the ``compound`` option:
![](documentation_images/macOS_button_images.png)
![](documentation_images/image_example_dark_Windows.png)
| _`example_button_images.py` on macOS_
###

Binary file not shown.

After

Width:  |  Height:  |  Size: 381 KiB

View File

@ -67,7 +67,7 @@ class App(customtkinter.CTk):
self.home_frame_button_2.grid(row=2, column=0, padx=20, pady=10)
self.home_frame_button_3 = customtkinter.CTkButton(self.home_frame, text="CTkButton", image=self.image_icon_image, compound="top")
self.home_frame_button_3.grid(row=3, column=0, padx=20, pady=10)
self.home_frame_button_4 = customtkinter.CTkButton(self.home_frame, text="CTkButton", image=self.image_icon_image, compound="top", anchor="w")
self.home_frame_button_4 = customtkinter.CTkButton(self.home_frame, text="CTkButton", image=self.image_icon_image, compound="bottom", anchor="w")
self.home_frame_button_4.grid(row=4, column=0, padx=20, pady=10)
# create second frame