I wanted to make a simple dhikrmatik (as the button is pressed, the number will increase and be written on the screen) application using specialkinter. I added a background image and wanted to add a button on the image, but the result was as in the picture. What is tyour texthe solution? This article was written with Google Translate, I apologize if there is any mistake. thanks
enter image description here
from PIL import Image
import customtkinter
customtkinter.set_appearance_mode("systemTransparent")
root= customtkinter.CTk()
root.geometry("400x550")
my_image= customtkinter.CTkImage(
dark_image=Image.open("zikirmatimage2.png"),
light_image=Image.open("zikirmatimage.png"),
size=(300,300))
my_label =customtkinter.CTkLabel(root, width=30, height=35, image=my_image, text="")
my_label.place(x=50,y=5)
button =customtkinter.CTkButton(root,
text="",
width=110,
height=110,
corner_radius=100,
)
#button.configure(bg="white", alpha=0.5)
button.place(y=180,x=100)
root.mainloop()
New contributor