code: def wait_input(self, prompt=''):
          
          self.new_prompt(prompt)
          self.setFocus()
          self.input_mode = True
          self.input_loop = QEventLoop()
          self.input_loop.exec_()
          self.input_loop = None
docs: Wait for input (raw_input support)