- 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

@@ -419,7 +419,13 @@ class PlotCanvasLegacy(QtCore.QObject):
self.app.ui.wplace_label.set_value(workspace_size[:3])
self.app.ui.wplace_label.setToolTip(workspace_size)
self.app.ui.wplace_label.show()
self.fcapp.ui.wplace_label.setStyleSheet("""
QLabel
{
color: black;
background-color: lightgreen;
}
""")
def delete_workspace(self):
try:
@@ -427,7 +433,7 @@ class PlotCanvasLegacy(QtCore.QObject):
self.canvas.draw()
except Exception:
pass
self.app.ui.wplace_label.hide()
self.fcapp.ui.wplace_label.setStyleSheet("")
def graph_event_connect(self, event_name, callback):
"""