title: Starting with Qt Designer and PyQt
body: <p>I love Python and I have heard a lot about Qt, so lately I've started creating simple GUI applications.
  When I convert by pyuic *.ui file to *.py everything looks familiar, understandable and reasonable. Except for one moment.</p>
  
  <pre><code>try:
      _fromUtf8 = QtCore.QString.fromUtf8
  except AttributeError:
      def _fromUtf8(s):
          return s
  
  try:
      _encoding = QtGui.QApplication.UnicodeUTF8
      def _translate(context, text, disambig):
          return QtGui.QApplication.translate(context, text, disambig, _encoding)
  except AttributeError:
      def _translate(context, text, disambig):
          return QtGui.QApplication.translate(context, text, disambig)
  </code></pre>
  
  <p>and then a lot of lines like:</p>
  
  <pre><code>MainWindow.setObjectName(_fromUtf8("MainWindow"))
  self.label_5.setObjectName(_fromUtf8("label_5"))
  
  MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow", None))
  self.label_5.setText(_translate("MainWindow", "Surname", None))
  </code></pre>
  
  <p>When I create any application without using <strong>_fromUtf8()</strong> and <strong>_translate()</strong> methods like:</p>
  
  <pre><code>MainWindow.setObjectName("MainWindow")
  self.label_5.setText("Surname")
  </code></pre>
  
  <p>everything works as well.</p>
  
  <p>So, here is a question:
  Do I really need to use <strong>_fromUtf8()</strong> and <strong>_translate()</strong> methods?</p>
  
  <p>If yes, why?</p>
  
  <p>Thanks in advance.</p>