parameters: (self)
return_statement: return app.exec_()
docstring: Preview the .ui file.  Return the exit status to be passed back to
          the parent process.
docstring_summary: Preview the .ui file.  Return the exit status to be passed back to
          the parent process.
docstring_tokens: Preview the . ui file . Return the exit status to be passed back to the parent process .
function: def _preview(self):
          """ Preview the .ui file.  Return the exit status to be passed back to
          the parent process.
          """
  
          from PyQt4 import QtGui
  
          app = QtGui.QApplication([self._ui_file])
          widget = loadUi(self._ui_file)
          widget.show()
  
          return app.exec_()
function_tokens: def _preview ( self ) : from PyQt4 import QtGui app = QtGui . QApplication ( [ self . _ui_file ] ) widget = loadUi ( self . _ui_file ) widget . show ( ) return app . exec_ ( )