title: How do you execute pyqt .ui code in python?
body: <p>I am making a GUI for a script I am making, after researching I found <em>pyqt</em> would be helpful. I have now made a GUI with no working buttons as of yet in <em>pyqt</em> but wanted to look at the code.</p>
  
  <p>I opened cmd.exe and typed in:</p>
  
  <pre><code>pyuic4 project.ui -o python.py
  </code></pre>
  
  <p>It created me a <em>python.py</em> script which showed me all the script I needed, however when I run it via IDLE or command prompt it shows it as running but no GUI opens up. Am I doing something wrong?</p>
  
  <p>Also on a side note, is <em>pyqt</em> suitable to use to create a simple GUI for windows, or is it for mobile development?</p>
  
  <p>Here is a snippet of code that i want to compile and run</p>
  
  <pre><code>from PyQt4 import QtCore, QtGui
  
  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)
  
  class Ui_FileHash(object):
      def setupUi(self, FileHash):
  </code></pre>