On Sat, 18 Jun 2011 16:58:43 +0100, Baz Walter baz...@ftml.net wrote:
after recently upgrading sip, several applications that use treeviews
started producing a lot of errors like this:
TypeError: expected 1 arguments, got 0
this is using: python 2.7.2, qt 4.7.3, sip 4.12.3, pyqt 4.8.4
the following test case demonstrates the problem:
import sys
from PyQt4 import QtCore, QtGui
class Window(QtGui.QTreeWidget):
def __init__(self):
QtGui.QTreeWidget.__init__(self)
for num in range(5):
QtGui.QTreeWidgetItem(
self, QtCore.QStringList('Item(%i)' % num))
self.sortByColumn(0, QtCore.Qt.AscendingOrder)
if __name__ == __main__:
app = QtGui.QApplication(sys.argv)
win = Window()
win.show()
sys.exit(app.exec_())
Fixed in tonight's SIP snapshot.
Thanks,
Phil
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt