Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

My first Python GUI program generating error

Tags:

python

pyqt4

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

Setting up IDE and 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: alt text

like image 701
RKh Avatar asked Sep 15 '26 22:09

RKh


1 Answers

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.

like image 68
mark Avatar answered Sep 17 '26 13:09

mark



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!