Python Forum

Full Version: How do I get buttons on top of an image?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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]
What would I have to do if I want the button to be on the dead center of the image?
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.
(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.