title: PyQt NameError when calling my scripts
body: <p>i keep getting this error but according to my textbook and previous script there should not be a problem  </p>
  
  <pre><code>    import sys
      from PyQt4 import QtCore, QtGui
      from welcome import *
      class MyForm(QtGui.QDialog):
          def __init__(self, parent=None):
              QtGui.QWidget.__init__(self, parent)
              self.ui = Ui_Dialog()
              self.ui.setupUi(self)
              QtCore.QObject.connect(self.ui.ClickMeButton, QtCore.SIGNAL('clicked()'),self.dispmessage)
  
          def dispmessage(self):
              self.ui.labelMessage.setText("Hello " + self.ui.lineUserName.text())
  
          if __name__=="__main__":
              app = QtGui.QApplication(sys.argv)
              myapp = MyForm()
              myapp.show()
              sys.exit(app.exec_())
  **ERROR**
  
  Traceback (most recent call last):
    File "C:/Python33/Lib/site-packages/PyQt4/callwelc.py", line 4, in &lt;module&gt;
      class MyForm(QtGui.QDialog):
    File "C:/Python33/Lib/site-packages/PyQt4/callwelc.py", line 16, in myform
      myapp = MyForm()
  NameError: name 'MyForm' is not defined
  </code></pre>