[opensuse-programming] [OT] PyQT users?
Are there any PyQT (Python wrapper for QT) users out there? I am considering it as a possible environment to develop a QT application, and am exploring current user's experiences. Is anyone using it on OpenSUSE? With Designer .ui files? SQL? Threads? -- Roger Oberholtzer OPQ Systems / Ramböll RST Ramböll Sverige AB Krukmakargatan 21 P.O. Box 17009 SE-104 62 Stockholm, Sweden Office: Int +46 10-615 60 20 Mobile: Int +46 70-815 1696 -- To unsubscribe, e-mail: opensuse-programming+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-programming+help@opensuse.org
On Wednesday 27 October 2010, 10:51:54 Roger Oberholtzer wrote:
Are there any PyQT (Python wrapper for QT) users out there? I am considering it as a possible environment to develop a QT application, and am exploring current user's experiences. Is anyone using it on OpenSUSE? With Designer .ui files? SQL? Threads?
Yes. All of it since about 10 years, but abstaining from PyKDE{3,4}, if possible. Limiting to PyQt{3,4} is pretty far reaching in itself already. You would target Qt4 only, of course.. It's a pretty mature project, although Python 3 compatibility added some churn the last 18 month.. If you plan to participate, I would suggest subscribing to: http://www.riverbankcomputing.com/mailman/listinfo/pyqt and I do hang out occasionally in #pyqt at freenode. Usually, the most current packages are available on my BS account: home:frispete:{PyQt,PyQt-next} http://download.opensuse.org/repositories/home:/frispete:/ I plan to add Python3 builds in the near future, but that still takes some more work to be done (such as being able to develop with PyQt4 for Python V.2 and V.3 at the same time). Pete P.S.: I find it funny, that we meet us a second time here around (after diskless computing with kiwi). Real good things simply stick stronger.. -- To unsubscribe, e-mail: opensuse-programming+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-programming+help@opensuse.org
On Fri, 2010-11-05 at 01:52 +0200, Hans-Peter Jansen wrote:
On Wednesday 27 October 2010, 10:51:54 Roger Oberholtzer wrote:
Are there any PyQT (Python wrapper for QT) users out there? I am considering it as a possible environment to develop a QT application, and am exploring current user's experiences. Is anyone using it on OpenSUSE? With Designer .ui files? SQL? Threads?
Yes. All of it since about 10 years, but abstaining from PyKDE{3,4}, if possible. Limiting to PyQt{3,4} is pretty far reaching in itself already. You would target Qt4 only, of course.. It's a pretty mature project, although Python 3 compatibility added some churn the last 18 month..
I think we will be targeting python 2. python 3 may just confuse us at this time. Or, are there good arguments for using python 3 from the start? This will be the first use of this, so we have no history. Maybe it is better to start with python 3?
If you plan to participate, I would suggest subscribing to:
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
and I do hang out occasionally in #pyqt at freenode.
Usually, the most current packages are available on my BS account:
home:frispete:{PyQt,PyQt-next} http://download.opensuse.org/repositories/home:/frispete:/
I plan to add Python3 builds in the near future, but that still takes some more work to be done (such as being able to develop with PyQt4 for Python V.2 and V.3 at the same time).
But how does it work if you are only doing one or the other?
P.S.: I find it funny, that we meet us a second time here around (after diskless computing with kiwi).
Real good things simply stick stronger..
:) -- Roger Oberholtzer OPQ Systems / Ramböll RST Ramböll Sverige AB Krukmakargatan 21 P.O. Box 17009 SE-104 62 Stockholm, Sweden Office: Int +46 10-615 60 20 Mobile: Int +46 70-815 1696 -- To unsubscribe, e-mail: opensuse-programming+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-programming+help@opensuse.org
On Friday 05 November 2010, 08:52:13 Roger Oberholtzer wrote:
On Fri, 2010-11-05 at 01:52 +0200, Hans-Peter Jansen wrote:
On Wednesday 27 October 2010, 10:51:54 Roger Oberholtzer wrote:
Are there any PyQT (Python wrapper for QT) users out there? I am considering it as a possible environment to develop a QT application, and am exploring current user's experiences. Is anyone using it on OpenSUSE? With Designer .ui files? SQL? Threads?
Yes. All of it since about 10 years, but abstaining from PyKDE{3,4}, if possible. Limiting to PyQt{3,4} is pretty far reaching in itself already. You would target Qt4 only, of course.. It's a pretty mature project, although Python 3 compatibility added some churn the last 18 month..
I think we will be targeting python 2. python 3 may just confuse us at this time. Or, are there good arguments for using python 3 from the start? This will be the first use of this, so we have no history. Maybe it is better to start with python 3?
It mostly depends on what you need in addition to Python and PyQt, but given, that Python 2 will be around for the next couple of years, that's a fair, stable and mature ground. What you probably want to do is using the automatic conversions that are mandatory with Python 3. They are available with Python 2 also, by sticking something similar to: # This is only needed for Python v2 but is harmless for Python v3. import sip sip.setapi('QString', 2) # converts QStrings to unicode objects internally sip.setapi('QVariant', 2) # converts QVariants to the basic data types internally before the first PyQt import (note the line wrap). And don't use the arkward SIGNAL() and SLOT() functions, that you still find in many examples around the net. Doing this eliminates a considerable amount of fuzz otherwise ;-).
If you plan to participate, I would suggest subscribing to:
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
and I do hang out occasionally in #pyqt at freenode.
Usually, the most current packages are available on my BS account:
home:frispete:{PyQt,PyQt-next} http://download.opensuse.org/repositories/home:/frispete:/
I plan to add Python3 builds in the near future, but that still takes some more work to be done (such as being able to develop with PyQt4 for Python V.2 and V.3 at the same time).
But how does it work if you are only doing one or the other?
It's about being able to install the -devel packages for both versions (which will fail ATM) and run the same code (probably converted with 2to3) with python 2 or 3 depending on which interpreter you take.. It's mostly a matter of -devel package split to make this happen. Pete -- To unsubscribe, e-mail: opensuse-programming+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-programming+help@opensuse.org
participants (2)
-
Hans-Peter Jansen
-
Roger Oberholtzer