def exec_prompt(bus, prompt, callback):
 prompt_obj = bus_get_object(bus, prompt)
 prompt_iface = dbus.Interface(prompt_obj, (SS_PREFIX + 'Prompt'))
 prompt_iface.Prompt('', signature='s')
 def new_callback(dismissed, unlocked):
  if isinstance(unlocked, dbus.Array):
   unlocked = list(unlocked)
  callback(bool(dismissed), unlocked)
 prompt_iface.connect_to_signal('Completed', new_callback)

def exec_prompt ( bus , prompt , callback ) : prompt_obj = bus_get_object ( bus , prompt ) prompt_iface = dbus . Interface ( prompt_obj , ( SS_PREFIX + 'Prompt' ) ) prompt_iface . Prompt ( '' , signature = 's' ) def new_callback ( dismissed , unlocked ) : if isinstance ( unlocked , dbus . Array ) : unlocked = list ( unlocked ) callback ( bool ( dismissed ) , unlocked ) prompt_iface . connect_to_signal ( 'Completed' , new_callback )
executes the given prompt .