rss· 导航· 设为首页· 加入收藏
当前位置: 火魔网 » 程序开发 » Python

eric 实现python form

好多人喜欢c#、vb那样的拖拽控件,实际python也能实现控件的布局,同样的方便
eric实现该功能: windows下安装eric:
下载eric:http://eric-ide.python-projects.org/eric4-download.html
pyqt:http://www.riverbankcomputing.co.uk/software/pyqt/download(Windows installer)
1)安装
2)进入eric4目录,cmd中运行install.py
3)安装完毕后,直接双击eric4.bat都可以运行Eric4
4)单击菜单Settings->Preferences后弹出对话框,选择左侧的Editor分支下的 Autocompletion,全勾上,source选择"from Document and API files"。然后再在左侧选择Editor分支下的APIs,勾上复选框,语言选择Python,单击按钮Add from installed APIs,把你需要的.api文件都加进去,最后点击Compile APIs,点击ok了
第一个form的实现:
有个哥们讲的不错,在就不阐述了 (http://hi.baidu.com/runningon/blog/item/115662279ff36a06918f9d0b.html)
运行ui的时候 有一个bug:
“could not start Qt-Designer. Ensure that it is available as \bin\designer.exe”
实现让人崩溃,bin目录在python25下没有,designer.exe存在的目录也没有bin文件夹呀
测试designer.exe复制到任何目录 都可以运行,于是简单处理之:
将designer.exe复制到python25/bin安装目录下(新建bin目录);这样.ui尽然o了;并且上面blog中的例子顺利运行;也许该bug有好的解决方案,继续关注之.....
顶一下
(0)
踩一下
(0)