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
b5db90d1
Commit
b5db90d1
authored
Apr 20, 2012
by
Jeremy Hammett
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update gviz.py
parent
4cfd073f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
3 deletions
+0
-3
gviz.py
gviz.py
+0
-3
No files found.
gviz.py
View file @
b5db90d1
...
@@ -14,8 +14,6 @@
...
@@ -14,8 +14,6 @@
# along with Printrun. If not, see <http://www.gnu.org/licenses/>.
# along with Printrun. If not, see <http://www.gnu.org/licenses/>.
import
wx
,
time
import
wx
,
time
CurZ
=
0
class
window
(
wx
.
Frame
):
class
window
(
wx
.
Frame
):
def
__init__
(
self
,
f
,
size
=
(
600
,
600
),
build_dimensions
=
[
200
,
200
,
100
,
0
,
0
,
0
],
grid
=
(
10
,
50
),
extrusion_width
=
0.5
):
def
__init__
(
self
,
f
,
size
=
(
600
,
600
),
build_dimensions
=
[
200
,
200
,
100
,
0
,
0
,
0
],
grid
=
(
10
,
50
),
extrusion_width
=
0.5
):
wx
.
Frame
.
__init__
(
self
,
None
,
title
=
"Gcode view, shift to move view, mousewheel to set layer"
,
size
=
(
size
[
0
],
size
[
1
]))
wx
.
Frame
.
__init__
(
self
,
None
,
title
=
"Gcode view, shift to move view, mousewheel to set layer"
,
size
=
(
size
[
0
],
size
[
1
]))
...
@@ -269,7 +267,6 @@ class gviz(wx.Panel):
...
@@ -269,7 +267,6 @@ class gviz(wx.Panel):
target
[
1
]
=
float
(
i
[
1
:])
target
[
1
]
=
float
(
i
[
1
:])
elif
i
[
0
]
==
"z"
:
elif
i
[
0
]
==
"z"
:
target
[
2
]
=
float
(
i
[
1
:])
target
[
2
]
=
float
(
i
[
1
:])
CurZ
=
target
[
2
]
elif
i
[
0
]
==
"e"
:
elif
i
[
0
]
==
"e"
:
target
[
3
]
=
float
(
i
[
1
:])
target
[
3
]
=
float
(
i
[
1
:])
elif
i
[
0
]
==
"f"
:
elif
i
[
0
]
==
"f"
:
...
...
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