Based on variable binding, the data bus platform idea, preliminary use of Python to achieve the following functions under the Linux terminal via Curses:
With Python's Dictionary, the data bus is implemented, providing a unified access method of variables (currently only supports String type variables, after all, Double, Integer is also displayed for String, only support single variable, similar to name 2 Consideration) Variable Binding has implemented three controls of Lable, Edit, Button, providing Window this carrier, except for Lable other respontent events (buttons) EDIT provides a variety of display, editing, such as input control ( Digital? Chinese? Floating point number, etc.), the development process of the left and right alignment standards is:
Design interface
The current design interface provides the development interface under Windows, seeing
Add function
For simple transactions, only the variables are sent to the background, and the buttons sent by departure.
Registration event (button)
Run the test, the operation is shown
running result
Design Tools
design
generate
Preview