- 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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user