mirror of
https://github.com/TomSchimansky/CustomTkinter.git
synced 2023-08-10 21:13:13 +03:00
added image_example image for readme
This commit is contained in:
parent
f3d90821ce
commit
60c72a4289
@ -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
|
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:
|
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_
|
| _`example_button_images.py` on macOS_
|
||||||
###
|
###
|
||||||
|
|
||||||
|
BIN
documentation_images/image_example_dark_Windows.png
Normal file
BIN
documentation_images/image_example_dark_Windows.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 381 KiB |
@ -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_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 = 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_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)
|
self.home_frame_button_4.grid(row=4, column=0, padx=20, pady=10)
|
||||||
|
|
||||||
# create second frame
|
# create second frame
|
||||||
|
Loading…
Reference in New Issue
Block a user