LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 07-12-2012, 11:00 PM   #1
Garda
Member
 
Registered: May 2005
Distribution: Debian
Posts: 83
Blog Entries: 2

Rep: Reputation: 15
Pyqt vs pyside


Hi,

I want to use the qt library for developing a GUI in python. I know some of the differences between these two bindings. Pyside is newer and I believe came to be for political and possibly also technical reasons.

Which of the two is the best choice and why?

Also, I am not aware of KDE4 python bindings that are based on pyside the way pykde4 is. Is that going to happen?
 
Old 07-13-2012, 05:46 PM   #2
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,223

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
All else being equal, PySide has the nicer API.

PyQt has two versions of its API. Version 2 of its API is nicer and more Pythonic. However, for historical reasons and backward compatibility, version 1 is the default. Therefore, you end up starting all your PyQt modules with:

Code:
from sip import setapi
setapi("QDate", 2)
setapi("QDateTime", 2)
setapi("QTextStream", 2)
setapi("QTime", 2)
setapi("QVariant", 2)
setapi("QString", 2)
setapi("QUrl", 2)
PySide, on the other hand, offers only version 2 of the API.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
PyQt UI with C sockets, possible? amboxer21 Programming 4 04-21-2012 08:15 PM
LXer: On the PySide - interview LXer Syndicated Linux News 0 08-25-2009 12:30 AM
LXer: PySide - LGPL Python bindings for Qt LXer Syndicated Linux News 0 08-19-2009 04:01 PM
LXer: PySide Brings LGPL Qt to Python LXer Syndicated Linux News 0 08-19-2009 07:00 AM
Which Version of PyQt do I have? rann_ Slackware 2 02-15-2006 05:43 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:11 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration