A python library for generating human machine interfaces
hmPy is a Python library for building HMIs.
To install the latest version of hmPy using pip:
$ pip install hmPy
hmPy’s test suite can be run using tox:
Note that pep8 compliance is required for the tests to pass.
For those of you who want to hit the ground running:
from hmpy import Interface from hmpy.views import ButtonView, LCDView # Create the base interface hmi = Interface() # Initialize counter to 0 count = 0 # Initialize an LCD View and a button View lcd = LCDView() btn = ButtonView("Increment") def increment_count(): lcd.value += 1 # Call the increment count method whenever the button is pressed btn.on_press(increment_count) # Add the views to the interface hmi.add_view(lcd) hmi.add_view(btn) # Launch the interface hmi.start()
For more detailed documentation and advanced examples, see the full documentation.
Full documentation and tutorial available at Read the Docs.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size hmPy-0.2.0.tar.gz (12.0 kB)||File type Source||Python version None||Upload date||Hashes View|