Pyforms Web documentation!¶
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.
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.
- Overview
- Python
BaseWidget
Controls
- ControlBase
- ControlAutoComplete
- ControlBoundingSlider
- ControlButton
- ControlCalendar
- ControlCheckBox
- ControlCheckBoxList
- ControlCheckBoxListQuery
- ControlCombo
- ControlDate
- ControlDateTime
- ControlDecimal
- ControlDir
- ControlEmail
- ControlEmptyWidget
- ControlFeed
- ControlFile
- ControlFileUpload
- ControlFloat
- ControlHtml
- ControlImage
- ControlInteger
- ControlItemsList
- ControlLabel
- ControlLineChart
- ControlList
- ControlSimpleLabel
- ControlMenu
- ControlMultipleSelection
- ControlPassword
- ControlPieChart
- ControlPlayer
- ControlProgress
- ControlQueryCards
- ControlQueryCombo
- ControlQueryItem
- ControlQueryList
- ControlSlider
- ControlTemplate
- ControlText
- ControlTextArea
- ControlTimeout
- ControlVisVis
- ControlWorkflow
Django admin
- Javascript