-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreadme_demo.py
44 lines (40 loc) · 1.29 KB
/
readme_demo.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
from quasargui import *
check1 = Model(False)
check2 = Model(False)
check3 = Model(True)
QInput.defaults['props'] = {
'outlined': True,
}
layout = QLayout([
QHeader([QToolbar([
QToolbarTitle(['QuasarGUI']),
QSpace(),
QButton(icon='language', props={'stretch': True}),
QButton(icon='favorite', props={'stretch': True}),
])]),
QPage([
Heading(1, classes='q-mt-lg q-mb-none', children=[
QImg('../../docs/assets/logo4.png', styles={'max-width': '200px'}),
'QuasarGUI'
]),
Div(classes='text-center', children=[
QForm([
Rows(classes='text-left q-gutter-lg', children=[
Columns([
QInput("Input a value", Model('fresh and groovy'))
]),
Columns([
QCheckbox('one', check1),
QCheckbox('two', check2),
QCheckbox('three', check3),
]),
Columns([
QButton('OK', classes='bg-primary text-white'),
QButton('Cancel')
])
])
])
])
])
])
run(layout, debug=True, title='Python GUI framework - based on Quasar')