Toggle plot by pressing SPACE key in project panel

This commit is contained in:
Zheng, Lei
2016-06-11 06:07:28 +08:00
parent ee8e9f8f4b
commit c5f4b9474a
2 changed files with 8 additions and 0 deletions

View File

@@ -199,6 +199,9 @@ class FCCheckBox(QtGui.QCheckBox):
def set_value(self, val):
self.setChecked(val)
def toggle(self):
self.set_value(not self.get_value())
class FCTextArea(QtGui.QPlainTextEdit):
def __init__(self, parent=None):