Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
DSI Parser Frontend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
DigitalDynamicMeasurement
DSI Parser Frontend
Commits
ad58bd98
Commit
ad58bd98
authored
1 year ago
by
Vanessa Stehr
Browse files
Options
Downloads
Patches
Plain Diff
Add css classes for styling
parent
9b4d8649
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
main.py
+6
-6
6 additions, 6 deletions
main.py
with
6 additions
and
6 deletions
main.py
+
6
−
6
View file @
ad58bd98
...
...
@@ -19,16 +19,16 @@ class page():
curdoc
().
add_root
(
bokehCssPTB
.
getStyleDiv
())
curdoc
().
theme
=
bokehCssPTB
.
getTheme
()
self
.
dsiInput
=
TextInput
(
value
=
""
,
title
=
"
DSI unit string:
"
)
self
.
dsiInput
=
TextInput
(
value
=
""
,
title
=
"
DSI unit string:
"
,
width
=
500
)
self
.
dsiInput
.
on_event
(
ValueSubmit
,
self
.
parseInput
)
self
.
dsiSubmitButton
=
Button
(
label
=
"
Convert
"
,
button_type
=
"
primary
"
)
self
.
dsiSubmitButton
.
on_click
(
self
.
parseInput
)
self
.
inputRow
=
row
(
children
=
[
self
.
dsiInput
,
self
.
dsiSubmitButton
])
curdoc
().
add_root
(
self
.
inputRow
)
self
.
inputRow
=
row
(
children
=
[
self
.
dsiInput
,
self
.
dsiSubmitButton
],
css_classes
=
[
"
textInputRow
"
])
self
.
results
=
column
(
children
=
[])
curdoc
().
add_root
(
self
.
results
)
self
.
layoutColumn
=
column
(
children
=
[
self
.
inputRow
,
self
.
results
],
css_classes
=
[
"
textlikeColumn
"
])
curdoc
().
add_root
(
self
.
layoutColumn
)
def
parseInput
(
self
):
self
.
results
.
children
=
[]
...
...
@@ -72,7 +72,7 @@ class page():
imageOutput
=
row
(
children
=
[
Div
(
text
=
"
$$\mathrm{\LaTeX{}}$$ output:
"
),
p
])
],
css_classes
=
[
"
latexImageRow
"
])
self
.
results
.
children
=
[
self
.
resultErrors
,
latexOutput
,
imageOutput
]
thisPage
=
page
()
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment