Commit 226198c0 authored by Yori Fournier's avatar Yori Fournier
Browse files

Merge branch '6-f5-to-refresh' into 'master'

F5 is now calling refresh

Closes #6

See merge request !5
parents e8cd2aa7 571a8d31
......@@ -57,14 +57,11 @@ class FigDesign(MyFig):
def declareAliases(self):
print('DECLARE ALIASES')
figDesign = self.design.get(self.design.figClassName, _DEFAULT_FIG_DESIGN)
if 'declareAliases' in figDesign:
exec(''.join(str(figDesign['declareAliases'])))
else:
print('DECLARE ALIASES NOT DONE')
pass
def addAxes(self):
......
......@@ -23,6 +23,7 @@ class QMyDesignWidget(QWidget):
self.figContainer = QMyFigContainer(plotDesign, self)
self.refreshButton = QPushButton("Refresh", self)
self.refreshButton.setShortcut('F5')
self.layout.addWidget(self.figContainer, 0, 1)
self.layout.addWidget(self.refreshButton, 1, 1)
......
......@@ -31,8 +31,6 @@ class QMyFigContainer(QWidget):
except:
self.figure = FigDesign(MyData(), MyDesign())
print('AXES: ' + str(self.figure.get_axes()))
# Link the figure with the canvas
self.figure.set_canvas(self.canvas)
self.canvas.figure = self.figure
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment