PySide 1.0.3 is working nicely
Check out the new site at https://rkblog.dev.
4 June 2011
Comments
Some time ago initial PySide releases wasn't able to run apps written with PyQt4 "just like that" with only few changes to the code. I've tested current 1.0.3 release with my quite simple App - "Zbrojownia Albionu" and I've managed to get it working with PySide quickly.
PySide is a Python library for Qt4 released under LGPL license. PyQt4 is released as GPL or paid commercial license. The more libre LGPL license is in the scope of interest for some closed source apps.
I've started from changing the imports:from PySide import QtCore, QtGui
class MyForm(QtGui.QMainWindow):
def __init__(self, parent=None):
QtGui.QWidget.__init__(self, parent)
class MyForm(QtGui.QMainWindow):
def __init__(self, parent=None):
QtGui.QMainWindow.__init__(self, parent)
self.ui.centralwidget.layout().setMargin(0)
TypeError: 'PySide.QtGui.QCheckBox.setCheckState' called with wrong argument types:
PySide.QtGui.QCheckBox.setCheckState(int)
Supported signatures:
PySide.QtGui.QCheckBox.setCheckState(PySide.QtCore.Qt.CheckState)
The app was simple, but it looks like PySide is or it will be quite quickly a complete, stable and in general compatible with PyQt4 library for Qt apps development in Python.
RkBlog
Check out the new site at https://rkblog.dev.
Comment article