10 Answers
+ 2
Thanks for the tips everyone. If I wanted to play music after I click on an image, what would be the best library then?
+ 2
Pygame is made for games, or interactive GUI in general. It has sound, images, and it's pretty simple to pick up.
+ 2
Alright. Now I see it everyone. Tkinter and Pygame are both good for this task, I will have a look at those libraries. Do you know any other website/docs of these libraries I could find exactly what I am looking for? I guess I can not be the first to think this.
Anyway, thanks for the tips people.
+ 2
Yes! Python can load image đ
Example code: https://code.sololearn.com/caozv32tiplh/?ref=app
+ 1
I would like to make a program that plays an audio everytime you click on a image. It would say a phrase, and then the user would input what was said on an entry box. According to what you people have told me, the best option to do this is Pygame, even though I think It is not really good with GUI?
0
I believe that python can't play music on its own, but with tkinter it's possible to load images. If you need sound, pygame has a very nice sound playing system. Pygame can also load images, so pygame is a very safe choice. You can look for the pygame docs for information on how to use it :)
0
To play music and load images using python built-in libraries is too hard, but you can use external packages using pip
For music/audio, see:
https://stackoverflow.com/questions/260738/play-audio-with-python
About image processing, I recommend using pillow (PIL), see this: ('pip install pillow')
https://pillow.readthedocs.io/en/stable/handbook/tutorial.html
I hope this helps :)
0
Click on image?
What do you exactly want to make (game / app) and what library are you using for GUI?
0
I prefer using tkinter for a project like that, it's simple and easy for making GUI elements, and there are many tutorials for it.
Because pygame is more difficult and you have to draw everything on the screen, also pygame is recommended for game making
0
You could do a search on stack overflow, or just a Google search in general. You can also look in
www.pygame.org/docs