Pyforms Web is Python 3 framework to create single-page web applications.
The framework aims the boost the development productivity by providing an API in Python that generates HTML Forms amd manages all the clientserver forms communications.
Developers do not require to write any HTML or Javascript code, all the code is done in Python 3.
- Source code
The next code produces the next web application.
class DefaultApp(BaseWidget):
TITLE = 'Demo app'
def __init__(self, *args, **kwargs):
super(DefaultApp, self).__init__(*args, **kwargs)
self._css_btn = ControlButton('Toggle css')
self._toggle_btn = ControlButton('Toggle visibility')
self._copy_btn = ControlButton('Copy the text')
self._input = ControlText('Type something here and press the copy button')
self._text = ControlTextArea('Result')
self._combo = ControlCombo('Combo')
self._check = ControlCheckBox('Check box')
self._list = ControlList('List')
self._label = ControlLabel('Label', default='Use the label for a dynamic text')
self.formset = [
no_columns('_toggle_btn','_copy_btn', '_css_btn'),
' ',
'_input',
'_text',
{
'Free text': [],
'Segments': [
'The next example has a segment',
segment(
'_combo',
'_check',
css='secondary'
),
'_list',
'_label'
]
}
]
Note
This framework is a software layer part of the Pyforms framework.
- Pyforms
overview getting-started/quick-start getting-started/installing
getting-started/first-app getting-started/db-apps getting-started/formset getting-started/apps-permissions getting-started/apps-inheritance getting-started/advance-db
orquestra/index
api-reference/overview api-reference/python/index api-reference/javascript/index
Pyforms <https://pyforms.readthedocs.io> Pyforms-GUI <https://pyforms-gui.readthedocs.io> Pyforms-TERMINAL <https://pyforms-terminal.readthedocs.io>
genindex
modindex
search