def wait_input(self, prompt=''):
        """Wait for input (raw_input support)"""
        self.new_prompt(prompt)
        self.setFocus()
        self.input_mode = True
        self.input_loop = QEventLoop()
        self.input_loop.exec_()
        self.input_loop = None
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
Wait for input (raw_input support)