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
d681bca9
Commit
d681bca9
authored
Nov 07, 2013
by
Guillaume Seguin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use home position in gcodeplater
parent
c91eea7b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
gcodeplater.py
gcodeplater.py
+3
-2
No files found.
gcodeplater.py
View file @
d681bca9
...
...
@@ -17,7 +17,7 @@
# Set up Internationalization using gettext
# searching for installed locales on /usr/share; uses relative folder if not found (windows)
from
printrun.printrun_utils
import
install_locale
from
printrun.printrun_utils
import
install_locale
,
get_home_pos
install_locale
(
'pronterface'
)
import
wx
...
...
@@ -45,7 +45,8 @@ class GcodePlater(Plater):
objects
=
property
(
get_objects
)
def
load_file
(
self
,
filename
):
gcode
=
gcoder
.
GCode
(
open
(
filename
))
gcode
=
gcoder
.
GCode
(
open
(
filename
,
"rU"
),
get_home_pos
(
self
.
build_dimensions
))
model
=
actors
.
GcodeModel
()
model
.
load_data
(
gcode
)
obj
=
gcview
.
GCObject
(
model
)
...
...
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