Python Forum
[Tkinter] How do I get buttons on top of an image?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Tkinter] How do I get buttons on top of an image?
#1
I want to have buttons on the top of an image like the pic shows below 
I tried tinkering tkinter again and again to get an output like this but it wont happen. 
If anyone could just post a solution with a code as an example, it would be really helpful. 
Thanks.
[Image: panel_with_bg.png]
Reply
#2
googling i found an answer
http://stackoverflow.com/questions/15795...photoimage
Recommended Tutorials:
Reply
#3
What would I have to do if I want the button to be on the dead center of the image?
Reply
#4
tk probably has ways to position elements, does it not? So the question is, are you pack()ing, or using grids?

Also, please show some code if you'd like more help, as this smells suspiciously like homework.
Reply
#5
(Dec-31-2016, 05:53 AM)metulburr Wrote: googling i found an answer
http://stackoverflow.com/questions/15795...photoimage

Thanks I got it to work.
I'm new to tkinter therefore I couldnt figure out the syntax and the anchor stuff used in the solution. 
It took me a few tries to get it to work but I've done it.
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020