Skip to content
Snippets Groups Projects
Commit cbc99e77 authored by Benedikt's avatar Benedikt
Browse files

fixed comp graph size and disabled compresult MSG by default

parent 3b81e1d9
No related branches found
No related tags found
No related merge requests found
......@@ -133,7 +133,7 @@ class dsiCompGraphGen:
def __init__(self,treeA=None,treeB=None):
self.treeA=treeA
self.treeB=treeB
self.plot = figure(width=550, height=500, x_range=(-1, 1), y_range=(0, 1), tools="save")
self.plot = figure(width=1000, height=500, x_range=(-2, 2), y_range=(0, 1), tools="save")
self.plot.xaxis.visible = False
self.plot.yaxis.visible = False
self.plot.grid.visible = False
......@@ -218,7 +218,7 @@ class page():
self.comapreButton = Button(label="Compare", button_type="primary")
self.comapreButton.on_click(self.compare)
self.compaReresult = Div(text = "", css_classes = ["msg-positive"])
self.compaReresult = Div(text = "", css_classes = ["msg-positive"],visible=False)
self.compareRow = row(children = [self.comapreButton,self.compaReresult], css_classes = ["textInputRow"])
curdoc().add_root(self.compareRow)
self.dsiCompGraphGen=dsiCompGraphGen(self.dsiInput1,self.dsiInput2)
......@@ -248,6 +248,7 @@ class page():
self.compaReresult.text = "The two units are not equal"
self.compaReresult.css_classes = ["msg-negative"]
self.dsiCompGraphGen.flush()
self.compaReresult.visible = True
self.createIssueButton.disabled=False
self.createIssueButton.button_type="danger"
self.createIssueButton.js_on_event("button_click",CustomJS(code=f"window.open('{self.createIssueUrl()}', '_blank');"))
......@@ -277,6 +278,7 @@ class page():
self.compaReresult.text = ""
self.createIssueButton.disabled=True
self.createIssueButton.button_type="primary"
self.compaReresult.visible = False
def tryComparison(self):
if self.dsiInput1.valideUnit and self.dsiInput2.valideUnit:
......
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