def choose_account(accounts):
 labels = [acc.slug for acc in accounts]
 (code, index) = z_util(interfaces.IDisplay).menu('Please choose an account', labels, force_interactive=True)
 if (code == display_util.OK):
  return accounts[index]
 else:
  return None

def choose_account ( accounts ) : labels = [ acc . slug for acc in accounts ] ( code , index ) = z_util ( interfaces . IDisplay ) . menu ( 'Please choose an account' , labels , force_interactive = True ) if ( code == display_util . OK ) : return accounts [ index ] else : return None
choose an account .