开发者

My first Python GUI program generating error

开发者 https://www.devze.com 2023-02-03 07:13 出处:网络
I tried following link to write my first Python GUI app: Setting up IDE and开发者_如何学Go creating a cross platform Qt Python GUI application

I tried following link to write my first Python GUI app:

Setting up IDE and开发者_如何学Go creating a cross platform Qt Python GUI application

I configured the settings exactly as shown in the screenshots, and just pasted that example given over there, but it is giving error. It is not able to find QtGui in PyQt4 folder. The only difference is that I am using Aptana Studio 3 Beta with PyDev plugin instead of Eclipse.

The screenshot of my development environment is here:

My first Python GUI program generating error


When I installed PyQt4 with the latest windows installer it missed adding the path to the dll files, too. Instead of adding another item to my already bloated path line I copied the contents of the C:\Python27\Lib\site-packages\PyQt4\bin folder up to the main PyQt folder (C:\Python27\Lib\site-packages\PyQt4) and that stopped the 'dll not found' errors that python was throwing.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号