[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyQt] bug in latest sip release
From:       Phil Thompson <phil () riverbankcomputing ! com>
Date:       2011-06-23 18:35:11
Message-ID: ded9b17f9f731f9e0331d7d7a5ec8f11 () localhost
[Download RAW message or body]

On Sat, 18 Jun 2011 16:58:43 +0100, Baz Walter <bazwal@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 list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic