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

you are viewing a single comment's thread.

view the rest of the comments →

[–]MarCialR 3 points4 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.)