Skip to content
Snippets Groups Projects
Commit ad58bd98 authored by Vanessa Stehr's avatar Vanessa Stehr
Browse files

Add css classes for styling

parent 9b4d8649
No related branches found
No related tags found
No related merge requests found
......@@ -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()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment