title: python: Gui Error message
body: <p>I try to learn GUI implementation and included my ui-file into my python script:</p>
  
  <pre><code>from PySide.QtGui import *
  import sys
  import MultiTool_widget_ui
  
  '''class MainDialog (QDialog, MultiTool_widget_ui.Ui_Form):
      def __init__(self):
          self.setupUi(MainDialog)'''
  
  app = QApplication(sys.argv)
  w = MultiTool_widget_ui.Ui_Form()
  #w = MainDialog()
  w.setupUi(QDialog)
  w.show()
  app.exec_()
  </code></pre>
  
  <p>Executing, I get this error message:</p>
  
  <blockquote>
    <p>Traceback (most recent call last):   File
    "C:\Users\jhofmann\workspace\Testumgebung\GUI.py", line 17, in
    
        w.setupUi(QDialog)   File "C:\Users\jhofmann\workspace\Testumgebung\MultiTool_widget_ui.py",
    line 14, in setupUi
        Form.setObjectName("Form") TypeError: descriptor 'setObjectName' requires a 'PySide.QtCore.QObject' object but received a 'str'</p>
  </blockquote>
  
  <p>pointing to this code line in the "setupUi"-method in the ui-file:</p>
  
  <pre><code>from PySide import QtCore, QtGui
  
  class Ui_Form(object):
      def setupUi(self, Form):
          Form.setObjectName("Form") &lt;--HERE!
          Form.resize(400, 300)
          self.lcdNumber = QtGui.QLCDNumber(Form)
          self.lcdNumber.setGeometry(QtCore.QRect(0, 110, 64, 23))
          self.lcdNumber.setObjectName("lcdNumber")
          self.pushButton = QtGui.QPushButton(Form)
          self.pushButton.setGeometry(QtCore.QRect(70, 110, 75, 23))
          self.pushButton.setObjectName("pushButton")
  
          self.retranslateUi(Form)
          QtCore.QMetaObject.connectSlotsByName(Form)
  </code></pre>
  
  <p>What could be the reason? I use Py 3.4</p>
  
  <p>(The commented blocks are the ones from a tutorial video)</p>