[Tkinter] How do I get buttons on top of an image? - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: GUI (https://python-forum.io/forum-10.html) +--- Thread: [Tkinter] How do I get buttons on top of an image? (/thread-1407.html) |
How do I get buttons on top of an image? - Saif133 - Dec-31-2016 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. RE: How do I get buttons on top of an image? - metulburr - Dec-31-2016 googling i found an answer http://stackoverflow.com/questions/15795916/image-behind-buttons-in-tkinter-photoimage RE: How do I get buttons on top of an image? - Saif133 - Dec-31-2016 What would I have to do if I want the button to be on the dead center of the image? RE: How do I get buttons on top of an image? - nilamo - Jan-03-2017 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. RE: How do I get buttons on top of an image? - Saif133 - Jan-04-2017 (Dec-31-2016, 05:53 AM)metulburr Wrote: googling i found an answer 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. |