def exec_prompt_qt(bus, prompt):
 from PyQt5.QtCore import QCoreApplication
 app = QCoreApplication([])
 result = []
 def callback(dismissed, unlocked):
  result.append(dismissed)
  result.append(unlocked)
  app.quit()
 exec_prompt(bus, prompt, callback)
 app.exec_()
 return (result[0], result[1])

def exec_prompt_qt ( bus , prompt ) : from PyQt5 . QtCore import QCoreApplication app = QCoreApplication ( [ ] ) result = [ ] def callback ( dismissed , unlocked ) : result . append ( dismissed ) result . append ( unlocked ) app . quit ( ) exec_prompt ( bus , prompt , callback ) app . exec_ ( ) return ( result [ 0 ] , result [ 1 ] )
like :func:exec_prompt .