+class PromptInterface(object):
+ def inputbox(self, text, init='', **kwargs):
+ """
+ Request a free-form, single line of text from the user.
+ Prompt the user using ``text``; and ``init`` is the
+ initial value filling the field; not all implementations
+ support editing ``init``. Returns the typed string.
+ """
+ raise NotImplementedError
+ def menu(self, text, choices=[], **kwargs):
+ """
+ Request a selection from a number of choices from the user.
+ Prompt the user using ``text``; ``choices`` is a list
+ of tuples of form ``(value to return, description)``, where
+ ``value to return`` is the value that this function will
+ return.
+ """
+ raise NotImplementedError
+ def passwordbox(self, text, **kwargs):
+ """
+ Securely requests a password from the user. Prompts the user
+ using ``text``; return value is the password.
+ """
+ raise NotImplementedError
+ def msgbox(self, text, **kwargs):
+ """
+ Gives the user a message that they must dismiss before proceeding.
+ """
+ raise NotImplementedError
+ def infobox(self, text, **kwargs):
+ """
+ Gives the user a non-blocking message; useful if you are about
+ to do an operation that will take some time.
+ """
+ raise NotImplementedError
+