Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Yori Fournier
mydesigngui
Commits
226198c0
Commit
226198c0
authored
Mar 24, 2017
by
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
Changes
3
Hide whitespace changes
Inline
Side-by-side
mplDesign.py
View file @
226198c0
...
...
@@ -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
):
...
...
qMyDesignWidget.py
View file @
226198c0
...
...
@@ -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
)
...
...
qMyFigContainer.py
View file @
226198c0
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment