[PyQt] QWSWindow.raise() class error with python

David Boddie david at boddie.org.uk
Sun Jul 20 23:42:52 BST 2008

On Sun Jul 20 20:54:12 BST 2008, Strato wrote:

> I need to call the raise() method of the QWSWindow class, to set an
> application to show up on top of other windows, but of course, 'raise'
> is a python reserved keyword, and the call lead to a "Invalid syntax
> error".
> So, does anybody have a workaround ? any idea of how to figure this out ?

Call its raise_() method instead:


All the Qt functions that shadow Python's keywords, like raise and exec, are
represented by Python methods with trailing underscores, like raise_() and


More information about the PyQt mailing list