title: How to control/drive/interact a PyQt GUI from command line in Python
body: <p>I have a GUI application created with PyQt and I would like to be able to control it also from the python terminal through a kind of internal API. </p>
  
  <p>Ideas :</p>
  
  <ul>
  <li>Using the main terminal : impossible since that it is blocked by the QApplication (by app.exec_())</li>
  <li>Starting the GUI in another thread to free the main one : impossible, the QApplications have to be executed in the main one.</li>
  <li>???</li>
  </ul>
  
  <p>I don't want an 'in-app' terminal.</p>
  
  <p>Do you have any other ideas ?</p>