On 2011-04-07 "Hans-Peter Jansen" <[email protected]> said:

> On Thursday 07 April 2011, 12:12:48 Vicent Mas wrote:
> > Hi,
> > 
> > I'm trying PyQt-x11-gpl-snapshot-4.8.4-8641ecc135b3 on a debian
> > testing box with Python2.7 and virtualenv-1.5.1. Running the attached
> > script raises the following error:
> > 
> > (venv2.7)vmas@rachael:/tmp$ Traceback (most recent call last):
> >   File "test_qaction.py", line 9, in <module>
> >   
> >     shortcut=QtGui.QKeySequence.New)
> > 
> > TypeError: keyword arguments are not supported
> > 
> > As far as I know the support of keyword arguments has not been
> > dropped so I suppose it is a bug. Am I right or am I missing
> > something?
> 
> Did this worked in earlier versions? I don't use keyword arguments much,
> but according to the builtin help, QAction simply didn't define any
> 
> (and neither provides the signature a shortcut argument):
> >>> help(QtGui.QAction)
> 
> class QAction(PyQt4.QtCore.QObject)
> 
>  |  QAction(QObject)
>  |  QAction(QString, QObject)
>  |  QAction(QIcon, QString, QObject)
> 
> in contrary to:
> >>> help(QtGui.QWidget)
> 
> class QWidget(PyQt4.QtCore.QObject, QPaintDevice)
> 
>  |  QWidget(QWidget parent=None, Qt.WindowFlags flags=0)
> 
> Pete
> _______________________________________________
> PyQt mailing list    [email protected]
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Hi,

It works fine with PyQt4.8.3. The only documentation I know regarding this is

http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/keyword_arguments.html

although it is not specific to QAction.

Vicent

::

        Share what you know, learn what you don't

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
PyQt mailing list    [email protected]
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Reply via email to