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
f35289b7
Commit
f35289b7
authored
May 21, 2013
by
Guillaume Seguin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add refresh timer to gcview
parent
ae83d8e1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
gcview.py
printrun/gcview.py
+3
-0
No files found.
printrun/gcview.py
View file @
f35289b7
...
...
@@ -458,6 +458,7 @@ class GcodeViewFrame(wx.Frame):
def
__init__
(
self
,
parent
,
ID
,
title
,
build_dimensions
,
pos
=
wx
.
DefaultPosition
,
size
=
wx
.
DefaultSize
,
style
=
wx
.
DEFAULT_FRAME_STYLE
):
super
(
GcodeViewFrame
,
self
)
.
__init__
(
parent
,
ID
,
title
,
pos
,
size
,
style
)
self
.
refresh_timer
=
wx
.
CallLater
(
100
,
self
.
Refresh
)
self
.
p
=
self
# Hack for backwards compatibility with gviz API
self
.
platform
=
actors
.
Platform
(
build_dimensions
)
self
.
model
=
None
...
...
@@ -467,6 +468,8 @@ class GcodeViewFrame(wx.Frame):
def
set_current_gline
(
self
,
gline
):
if
gline
.
is_move
and
self
.
model
and
self
.
model
.
loaded
:
self
.
model
.
printed_until
=
gline
.
gcview_end_vertex
if
not
self
.
refresh_timer
.
IsRunning
():
self
.
refresh_timer
.
Start
()
def
addfile
(
self
,
gcode
=
None
):
self
.
model
=
actors
.
GcodeModel
()
...
...
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