How to use image background in CustomTkinter #127
Unanswered
sistemasolar5
asked this question in
Q&A
Replies: 2 comments 2 replies
-
Hello there! Default tkinter gui elements should work with CTK. Also, it's always good to indent the code, so we can just copy and test it right away. If you find a issue after trying to mix tkinter with ctk to add background in CustomTkinter, I will help you. |
Beta Was this translation helpful? Give feedback.
1 reply
-
I just remembered, there is a sample here https://github.com/TomSchimansky/CustomTkinter/blob/master/examples/example_background_image.py |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is there anyway of using images as backgrounds using CustomTkinter, I'm new on this, I already did this using Tkinter, but I don't know how to do it on CustomTkinter.
The screen shot is with Tkinter normally.
Thanks in advance, I tried this, of course is wrong, can you please help me on this.
photo = customtkinter.CTkCanvas(file = "/home/sistema/PycharmProjects/Pythonpruebas/venv/graficos/planets.png")
w = customtkinter.CTkCanvas(win, image="/home/sistema/PycharmProjects/Pythonpruebas/venv/graficos/planets.png")
w.pack()
Beta Was this translation helpful? Give feedback.
All reactions