[Eric] widget.raise() function in eric editor

Detlev Offenbach detlev at die-offenbachs.de
Tue Nov 25 16:56:45 GMT 2008


On Sonntag, 25. Januar 2009, Iliya Gogolev wrote:
> Hello
>
>
>
> I'm using Eric4 with PyQt4. I want to call raise function of QWidget class,
> but eric editor shows me a error in this line, thinking that there's a
> raise calling of exception I think.
>
> What's the solution?
>
>
>
> The code:
>
> a = QWidget ()
>
> a.raise()                            # this line has a error, but this's
> legal function of QWidget

But it isn't legal in Python code. You should use "a.raise_()". There are 
other methods, that got the same treatment in PyQt. See the PyQt 
documentation for details. It's basically all Qt methods, that have the same 
name like Python keywords.

>
>
>
>
>
>
>
> Best Regards,
>
>
>
> Iliya Gogolev
>
> Client Technologies
>
>
>
> Mytopia Inc.
>
> HYPERLINK "http://www.mytopia.com"www.mytopia.com
>
>
>
> Helping the World Play Together
>
>
>
>
>
> P   Please think of the environment before printing this email
>
>
>
>
>
>
> Internal Virus Database is out-of-date.
> Checked by AVG.
> Version: 7.5.549 / Virus Database: 270.9.9/1809 - Release Date: 11/24/2008
> 9:03 AM



-- 
Detlev Offenbach
detlev at die-offenbachs.de


More information about the Eric mailing list