note.add_button(_("Validate"), gtk.RESPONSE_OK)
if prompt:
input = hildon.Entry(gtk.HILDON_SIZE_FINGER_HEIGHT)
- input.set_placeholder(_("Verification code from web browser"))
input.set_property('is-focus', False)
+ note.set_title(_("Verification code from web browser"))
note.vbox.add(input)
else:
note.vbox.add(gtk.Label(_("\nPress 'Validate' once account has\nbeen authorised in web browser.\n")))
note.hide()
lock.release()
if prompt and result == gtk.RESPONSE_OK:
+ print input.get_text()
return input.get_text()
else:
return None