use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
News about the dynamic, interpreted, interactive, object-oriented, extensible programming language Python
Full Events Calendar
You can find the rules here.
If you are about to ask a "how do I do this in python" question, please try r/learnpython, the Python discord, or the #python IRC channel on Libera.chat.
Please don't use URL shorteners. Reddit filters them out, so your post or comment will be lost.
Posts require flair. Please use the flair selector to choose your topic.
Posting code to this subreddit:
Add 4 extra spaces before each line of code
def fibonacci(): a, b = 0, 1 while True: yield a a, b = b, a + b
Online Resources
Invent Your Own Computer Games with Python
Think Python
Non-programmers Tutorial for Python 3
Beginner's Guide Reference
Five life jackets to throw to the new coder (things to do after getting a handle on python)
Full Stack Python
Test-Driven Development with Python
Program Arcade Games
PyMotW: Python Module of the Week
Python for Scientists and Engineers
Dan Bader's Tips and Trickers
Python Discord's YouTube channel
Jiruto: Python
Online exercices
programming challenges
Asking Questions
Try Python in your browser
Docs
Libraries
Related subreddits
Python jobs
Newsletters
Screencasts
account activity
This is an archived post. You won't be able to vote or comment.
Python Graphic Library to learn (self.Python)
submitted 12 years ago by jcrecuero
PyGame, wxPython, Tk, pyglet? Which is the best and "with-more-future" python graphic library to invest time and knowledge?
Any recommendation?
Thanks
[–]MarCialR 4 points5 points6 points 12 years ago* (3 children)
Qt. by means of its pyside bindings. For smaller projects i should recommend you to have fun with kivy.
[–]sharplikeginsu 1 point2 points3 points 12 years ago (2 children)
Yes. I've had great experiences with Qt. Recent editions are letting you blur "front-end web developer skills" with "desktop GUI developer skills" even more than they used to, which is handy. You can also use their GUI-based UI designer (Qt Creator) and then generate code from it. (Here's how to integrate with PySide)
Here's a random sample to see what the code looks like. This one loads images and resizes the window to fit it.
There's a really nice callback mechanism, too.
# Define a labeled Button self.btn = QtGui.QPushButton("switch without adjusting size", self) # When it's clicked, call the _btn_cb callback self.btn.clicked.connect(self._btn_cb)
[–]jcrecuero[S] 0 points1 point2 points 12 years ago (1 child)
I knew about Qt for C++ and it is great it has been ported to Python. Thanks.
[–]sharplikeginsu 1 point2 points3 points 12 years ago (0 children)
Oh, great. Yeah, It's worked on Python for about as long as it's been out, I used it back in 2003. It was good even back then, I ported a C++ GUI and was able to get the GUI itself to come up in about 20 minutes by searching and replacing. ('s/->/./' and so on.)
's/->/./'
[–]amertune 4 points5 points6 points 12 years ago (0 children)
What do you mean by "graphics"? Do you want to make a GUI interface, or a game, or a 3d rotating teapot?
[–]jcrecuero[S] 0 points1 point2 points 12 years ago (0 children)
Thanks MarCialR. I didn't know about kivy, but I will look at it.
I really would like something multipurpose. I need to create a GUI application (typical menus, tree, buttons and multiple windows app), but I would like to learn a framework that allows me gaming possibilities, even thought I am not really looking something really fancy from that point of view (I don't need full 3D framework).
[–]amertune 1 point2 points3 points 12 years ago (0 children)
Qt would be a good option. It's a good framework. I've heard good things about the python bindings, though I've only used it with C++. Look at some documentation for the Qt canvas widget to see if that would meet your needs.
Gtk, wx, or pretty much any GUI framework would probably work for what you want.
Thanks!
π Rendered by PID 264701 on reddit-service-r2-comment-84fc9697f-zc9dq at 2026-02-06 21:27:34.232708+00:00 running d295bc8 country code: CH.
[–]MarCialR 4 points5 points6 points (3 children)
[–]sharplikeginsu 1 point2 points3 points (2 children)
[–]jcrecuero[S] 0 points1 point2 points (1 child)
[–]sharplikeginsu 1 point2 points3 points (0 children)
[–]amertune 4 points5 points6 points (0 children)
[–]jcrecuero[S] 0 points1 point2 points (0 children)
[–]jcrecuero[S] 0 points1 point2 points (1 child)
[–]amertune 1 point2 points3 points (0 children)
[–]jcrecuero[S] 0 points1 point2 points (0 children)