Submitted by admin on Sun, 2009-09-27 21:06
Riverbank | News | PyQt v4.6 Released
Riverbank Computing have released version 4.6 of PyQt, their Python bindings for Qt, and version 4.9 of SIP, their Python/C++ bindings generator. Changes in PyQt:
- alternate, more Pythonic, APIs have been defined for QDate, QDateTime, QString, QTextStream, QTime, QUrl and QVariant. Applications may select a particular API. By default Python v3 uses the new versions and Python v2 uses the old versions
- Qt properties can be initialised using keyword arguments passed when creating an instance
- signals can be connected using keyword arguments passed when creating an instance
- the QObject.pyqtConfigure() method has been added to set Qt properties and connect signals using keyword arguments at any time
- Python v2.6 and later allow a Python bytearray to be used whenever a QByteArray is expected
- the getOpenFileNameAndFilter(), getOpenFileNamesAndFilter() and getSaveFileNameAndFilter() static methods have been added to QFileDialog
- a QLatin1String can be passed whenever a QString is expected
- the compileUiDir() function has been added to the uic module.
Changes in SIP:
- support for iter and next
- the %API directive
- the /API/ annotation
- sipIsAPIEnabled() has been added to the C API
- sip.getapi() and sip.setapi() have been added to the Python API
- sip.ispyowned() has been added to the Python API
- mapped types can now act as a namespace for enums and static methods
- the /Array/ annotation can now be applied to classes and mapped types
- the /NoArgParser/ annotation can now be applied to methods as well as functions
- the --arch flag was added to configure.py to specify which MacOS/X architectures are built
- SIP is now also licensed under the GPL v2 and v3.
Downloads of PyQt here and of SIP here. PyQt is licensed under either the GPL (v2 or v3 and not LGPL) or a commercial licence; SIP is licensed under the Python licence or GPL v2 or v3.
- Login to post comments