[PyQt] QAction kwargs

David Boddie david at boddie.org.uk
Mon Jun 28 01:26:33 BST 2010


On Sun Jun 27 20:25:30 BST 2010, F.A.Pinkse wrote:

> In the Pyqt Example source/Phonon/musicplayer.pyw I found this
>
>          self.playAction = QtGui.QAction(
>             self.style().standardIcon(QtGui.QStyle.SP_MediaPlay),"Play",
>                  self, shortcut="Ctrl+P", enabled=False,
>                  triggered=self.mediaObject.play)
>
> This piece of code uses keyword args.
> I have looked into the PyQt API reference but could not find zny
> reference to them.
>
> Someone?

http://www.riverbankcomputing.com/static/Docs/PyQt4/pyqt4ref.html#support-for-keyword-arguments

David


More information about the PyQt mailing list