Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
Printrun
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
machinery
Printrun
Commits
f7dec420
Commit
f7dec420
authored
Apr 05, 2014
by
Guillaume Seguin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make display_graph/gauges dynamic
parent
803e03b5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
pronterface.py
printrun/pronterface.py
+9
-4
No files found.
printrun/pronterface.py
View file @
f7dec420
...
...
@@ -115,6 +115,14 @@ class PronterWindow(MainWindow, pronsole.pronsole):
self
.
excluder_z_rel
=
None
fgcode
=
property
(
_get_fgcode
,
_set_fgcode
)
def
_get_display_graph
(
self
):
return
self
.
settings
.
tempgraph
display_graph
=
property
(
_get_display_graph
)
def
_get_display_gauges
(
self
):
return
self
.
settings
.
tempgauges
display_gauges
=
property
(
_get_display_gauges
)
def
__init__
(
self
,
app
,
filename
=
None
,
size
=
winsize
):
pronsole
.
pronsole
.
__init__
(
self
)
self
.
app
=
app
...
...
@@ -174,9 +182,6 @@ class PronterWindow(MainWindow, pronsole.pronsole):
self
.
Bind
(
wx
.
EVT_MAXIMIZE
,
self
.
on_maximize
)
self
.
window_ready
=
True
self
.
display_graph
=
self
.
settings
.
tempgraph
self
.
display_gauges
=
self
.
settings
.
tempgauges
# set feedrates in printcore for pause/resume
self
.
p
.
xy_feedrate
=
self
.
settings
.
xy_feedrate
self
.
p
.
z_feedrate
=
self
.
settings
.
z_feedrate
...
...
@@ -936,7 +941,7 @@ Printrun. If not, see <http://www.gnu.org/licenses/>."""
self
.
start_viz_thread
()
def
update_monitor
(
self
,
*
args
):
if
hasattr
(
self
,
"
display_
graph"
)
and
self
.
display_graph
:
if
hasattr
(
self
,
"graph"
)
and
self
.
display_graph
:
if
self
.
settings
.
monitor
:
wx
.
CallAfter
(
self
.
graph
.
StartPlotting
,
1000
)
else
:
...
...
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