Thanks for your reply and attempt Guru,

In my integrator.py (this is my python script)

I have:

Qt Code:
  1. import sys
  2. import numpy as np
  3. from math import *
  4. from PyQt4 import QtCore, QtGui
  5. from integrator import Ui_integrator
To copy to clipboard, switch view to plain text mode 

in my Ui_integrator (that I made as a result of my Qt.ui, the first few lines are:

Qt Code:
  1. from PyQt4 import QtCore, QtGui
  2.  
  3. try:
  4. _fromUtf8 = QtCore.QString.fromUtf8
  5. except AttributeError:
  6. _fromUtf8 = lambda s: s
  7.  
  8. class Ui_Integrator(object):
  9. def setupUi(self, Integrator):
  10. Integrator.setObjectName(_fromUtf8("Integrator"))
  11. Integrator.resize(484, 596)
To copy to clipboard, switch view to plain text mode