| Home | Trees | Indices | Help |
|
|---|
|
|
TextInterface is a base class for handling the communication between user and Entropy-based applications.
This class works for text-based applications, it must be inherited from subclasses and its methods reimplemented to make Entropy working on situations where a terminal is not used as UI (Graphical applications, web-based interfaces, remote interfaces, etc).
Every part of Entropy is using the methods in this class to communicate with the user, channel is bi-directional.
| Instance Methods | |||
| None |
|
||
| None |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
| Method Details |
Text output print function. By default text is written to stdout.
|
Questions asking function. It asks the user to answer the question given by choosing between a preset list of answers given by the "reposonses" argument.
|
Generic input box (form) creator and data collector.
@param title: input box title
@type title: string
@param input_parameters: list of properly formatted tuple items.
@type input_parameters: list
@keyword cancel_button: make possible to "cancel" the input request.
@type cancel_button: bool
@return: dict containing input box answers
@rtype: dict
input_parameters supported items:
[input id], [input text title], [input verification callback], [
no text echo?]
('identifier 1', 'input text 1', input_verification_callback, False)
('item_3', ('checkbox', 'Checkbox option (boolean request) - please choose',),
input_verification_callback, True)
('item_4', ('combo', ('Select your favorite option', ['option 1', 'option 2', 'option 3']),),
input_verification_callback, True)
('item_4',('list',('Setup your list',['default list item 1', 'default list item 2']),),
input_verification_callback, True)
|
Not actually implemented. Can be useful for external applications and its used to determine when a certain transaction is done. |
Set application title.
|
Not actually implemented. Can be useful for external applications and its used to set the amount of logical transactions that this interface has to go through. |
Disable coloured output. Used for terminals. |
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Wed Aug 5 16:58:56 2009 | http://epydoc.sourceforge.net |