[PyQt] QKeySequence.Quit missing

Christoph Burgmer chrislb at gmx.de
Sun Mar 7 20:29:27 GMT 2010


Am Sonntag, 7. März 2010 schrieben Sie:
> On Sat, 6 Mar 2010 18:14:06 +0100, Christoph Burgmer <chrislb at gmx.de>
> 
> wrote:
> > It seems QKeySequence.Quit and QKeySequence.Preferences are missing from
> > enum
> > QKeySequence::StandardKey
> >
> >>>> from PyQt4.QtGui import QKeySequence
> >>>> QKeySequence.InsertLineSeparator
> >
> > 62
> >
> >>>> QKeySequence.SaveAs
> >
> > 63
> >
> >>>> QKeySequence.Preferences
> >
> > Traceback (most recent call last):
> >   File "<stdin>", line 1, in <module>
> > AttributeError: type object 'QKeySequence' has no attribute 'Preferences'
> >
> >>>> QKeySequence.Quit
> >
> > Traceback (most recent call last):
> >   File "<stdin>", line 1, in <module>
> > AttributeError: type object 'QKeySequence' has no attribute 'Quit'
> >
> > I'm running 4.6 on Debian.
> 
> 4.6 of what? Support was added to Qt v4.6 and PyQt v4.7.

Sorry, PyQt4.6. The Qt documentation didn't mention that these attributes 
where added lately, so I assumed they existed since Qt4.2 as mentioned for 
QKeySequence::StandardKey.

-Christoph


More information about the PyQt mailing list