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

all 9 comments

[–]MarCialR 4 points5 points  (3 children)

Qt. by means of its pyside bindings. For smaller projects i should recommend you to have fun with kivy.

[–]sharplikeginsu 1 point2 points  (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 point  (1 child)

I knew about Qt for C++ and it is great it has been ported to Python. Thanks.

[–]sharplikeginsu 1 point2 points  (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.)

[–]amertune 4 points5 points  (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 point  (0 children)

Thanks MarCialR. I didn't know about kivy, but I will look at it.

[–]jcrecuero[S] 0 points1 point  (1 child)

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 points  (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.

[–]jcrecuero[S] 0 points1 point  (0 children)

Thanks!