`
hellocgc
  • 浏览: 29527 次
  • 性别: Icon_minigender_1
  • 来自: 汕头
社区版块
存档分类
最新评论

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

0
0
分享到:
评论

相关推荐

    Python+PyQT+Eric安装配置.docx

    在Eric5中,你可以实时查看和调试代码,从而快速迭代和优化你的应用。 通过以上步骤,你已经成功配置了Python+PyQT+Eric的开发环境,可以开始编写和调试基于PyQT的Python应用程序了。Eric5作为一款强大的集成开发...

    Myeclipse js插件工具,附带说明

    3. 按照提示操作:在弹出的对话框中输入插件的描述和位置,点击“Next”继续,接受许可协议,然后等待安装过程完成。 4. 重启MyEclipse:安装完成后,通常需要重启IDE以使插件生效。 在MyEclipse中,JavaScript插件...

    用递归的方法画分形图

     上述的代码及图形附有Visual C++源代码,并在Windows XP和Visual C++6.0下调试成功。更多的分形图形及图形坐标空间几何的计算方法请与作者联系。 最新评论 [发表评论] [文章投稿] 查看所有评论 推荐给好友 ...

    C#入门经典 英文原版

    - **第17章:使用常用对话框**:介绍如何在应用程序中集成标准对话框,例如文件打开/保存对话框、颜色选择器等。 **18. 部署Windows应用程序** - **第18章:部署Windows应用程序**:讨论如何打包、安装和更新...

    SpringMVC+JDBC+Redis+Mysql+EasyUI simba精简版本

    在SpringMVC中,JDBC通常配合DataSource使用,用于执行SQL语句、处理结果集,实现数据的CRUD操作。Spring的JdbcTemplate或NamedParameterJdbcTemplate库可以帮助简化JDBC的使用,提供事务管理和异常处理等功能。 **...

Global site tag (gtag.js) - Google Analytics