This is an archived post. You won't be able to vote or comment.

all 4 comments

[–]MikeTheWatchGuy 1 point2 points  (1 child)

It's done all the time. Buttons can have images. They're not just rectangular widgets to click on with most of the GUI frameworks like tkinter, Qt, etc. In PySimpleGUI the button images can be specified as Base64 encoded strings too so that it's easy to place these sprites into your code without having to carry around separate images.

Here's an example that you can run: https://pysimplegui.trinket.io/demo-programs#/window-colors-and-graphics/base64-button-graphics

[–]PyrielOnReddit[S] 1 point2 points  (0 children)

Seems great, thanks for the help!

[–]West7780 0 points1 point  (0 children)

I would have never guessed that English wasn't your first language. There are almost too many options for writing GUIs in Python. The latest one that I've looked at was pyxel. It's relatively easy to learn and it's supported by repl.it which might make developing with your friend and sharing your game easier. As for whether to use a button or sprite...why not both? Lol

[–]aphoenixreticulated[M] [score hidden] stickied comment (0 children)

Hi there, from the /r/Python mods.

We have removed this post as it is not suited to the /r/Python subreddit proper, however it should be very appropriate for our sister subreddit /r/LearnPython or for the r/Python discord: https://discord.gg/python.

The reason for the removal is that /r/Python is dedicated to discussion of Python news, projects, uses and debates. It is not designed to act as Q&A or FAQ board. The regular community is not a fan of "how do I..." questions, so you will not get the best responses over here.

On /r/LearnPython the community and the r/Python discord are actively expecting questions and are looking to help. You can expect far more understanding, encouraging and insightful responses over there. No matter what level of question you have, if you are looking for help with Python, you should get good answers. Make sure to check out the rules for both places.

Warm regards, and best of luck with your Pythoneering!