PDA

View Full Version : QtCore not found.



pixxyman
23rd June 2015, 17:43
Hi,

I had to rebuild my pc and i've reinstalled python 3.4 x (32bit)
PyQt4-4.11.4-gpl-Py3.4-Qt4.8.7-x32.exe and pycharm-community-4.5.2.exe.

However, when I open my original projects that were working just fine before, I get the error..
'Unresolved reference QTCore'.

At the top of my project i'm importing..:
from PyQt4.QtCore import *
from PyQt4.QtGui import *
import sys
import os

# create a constructor method
def __init__(self):
QDialog.__init__(self) # call the parent
try:
# call this method to make application runnable.
self.setupUi(self)
self.pushButtonSubmit.clicked.connect(self.get_par ms)
QObject.connect(self.comboBox, QtCore.SIGNAL(_fromUtf8("currentIndexChanged(int)")),
self.enable_tools_checkboxes)
QtCore.QObject.connect(self.radioHardware, QtCore.SIGNAL(_fromUtf8("toggled(bool)")),
self.buttonSubmit.setEnabled)
except Exception as err:
raise


My python 3.4 directory contains PyQt4 in...:
C:\Python34\Lib\site-packages\PyQt4 and there's a QTCore.dll and QTCore.pyd.

Is there anything else I need to consider?

Thanks,

John.