解决在eric4中无法生成对话框代码有关问题

解决在eric4中无法生成对话框代码问题

On Mittwoch, 29. Dezember 2010, Youssef Oualmakran wrote:
> Dear sir or madame,
>
> I am trying to lean pyQt and Eric5 with the tutorial from Eric5 website.
>
>
> I get an "uic error" while trying to hit "Generate dialog code ...".
> The error text tells:
> "There was an error loading the form C:\Users[...]
> 'module' object has no attribute 'StackedWidget'".

That is an issue of the latest PyQt4. See PyQt mailing list for a patch. Here
is the quote from the article:

To fix this issue, just open
"/usr/lib/python2.7/site-packages/PyQt4/uic/uiparser.py", move to line
161 and replace "QtGui.StackedWidget" with "QtGui.QStackedWidget".

Regards,
Detlev

>
> Then, I click "Ok" on the error window. On the window that appears
> "Forms code generator", when I click "new", I get a similar error.
>
>
> I have followed the instructions on
> http://ericide.pythonprojects.org/tutorials/MiniBrowser/index.html and
> get this error when I am at chapter 3.
>
>
> I think I am using latest versions of the required softwarse:
>
> Eric 5.0.4
>
> Windows Seven Home Premium on a Pentium Dual Core
> Python Version: 3.1.3
> Found PyQt
> Found QScintilla2
> Qt Version: 4.7.1
> PyQt Version:  4.8.2
> QScintilla Version:  2.4.6
>
> Can someone tell me what that error means?
>
> Regards,
> Youssef Oualmakran
> _______________________________________________
> Eric mailing list
> Eric@riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/eric


--
Detlev Offenbach
det...@die-offenbachs.de