- made the workspace label in the status bar clickable and also added a status bar message on status toggle for workspace

This commit is contained in:
Marius Stanciu
2020-05-18 06:08:43 +03:00
committed by Marius
parent 1085d26b7b
commit af2cc005b0
5 changed files with 21 additions and 5 deletions

View File

@@ -245,14 +245,20 @@ class PlotCanvas(QtCore.QObject, VisPyCanvas):
self.fcapp.ui.wplace_label.set_value(workspace_size[:3])
self.fcapp.ui.wplace_label.setToolTip(workspace_size)
self.fcapp.ui.wplace_label.show()
self.fcapp.ui.wplace_label.setStyleSheet("""
QLabel
{
color: black;
background-color: lightgreen;
}
""")
def delete_workspace(self):
try:
self.workspace_line.parent = None
except Exception:
pass
self.fcapp.ui.wplace_label.hide()
self.fcapp.ui.wplace_label.setStyleSheet("")
# redraw the workspace lines on the plot by re adding them to the parent view.scene
def restore_workspace(self):