解决在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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值