1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- """
- Callback interface
- To be used when UI needs to be back to get info from user.
- """
- class Callback(object):
- """Callback interface. Callback classes must implement this."""
- def getinput(self, question):
- """Return text"""
- pass
- def getsecret(self, question):
- """Return key"""
- pass
- def error(self, error):
- """Present error to user"""
- pass
- def warning(self, warning):
- """Present warning to user"""
- pass
- def notice(self, warning):
- """Present notice to user"""
- pass
|