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
1950681f
Commit
1950681f
authored
May 24, 2013
by
Guillaume Seguin
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'experimental' of github.com:kliment/Printrun into experimental
parents
bc7cf333
89a2fb64
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
gcview.py
printrun/gcview.py
+6
-0
pronterface.py
pronterface.py
+4
-0
No files found.
printrun/gcview.py
View file @
1950681f
...
@@ -486,6 +486,12 @@ class GcodeViewMainWrapper(object):
...
@@ -486,6 +486,12 @@ class GcodeViewMainWrapper(object):
if
not
self
.
refresh_timer
.
IsRunning
():
if
not
self
.
refresh_timer
.
IsRunning
():
self
.
refresh_timer
.
Start
()
self
.
refresh_timer
.
Start
()
def
addgcode
(
self
,
*
a
):
pass
def
setlayer
(
self
,
*
a
):
pass
def
addfile
(
self
,
gcode
=
None
):
def
addfile
(
self
,
gcode
=
None
):
self
.
model
=
actors
.
GcodeModel
()
self
.
model
=
actors
.
GcodeModel
()
if
gcode
:
if
gcode
:
...
...
pronterface.py
View file @
1950681f
...
@@ -93,6 +93,8 @@ def parse_build_dimensions(bdim):
...
@@ -93,6 +93,8 @@ def parse_build_dimensions(bdim):
defaults
=
[
200
,
200
,
100
,
0
,
0
,
0
,
0
,
0
,
0
]
defaults
=
[
200
,
200
,
100
,
0
,
0
,
0
,
0
,
0
,
0
]
bdl
=
filter
(
None
,
bdl
)
bdl
=
filter
(
None
,
bdl
)
bdl_float
=
[
float
(
value
)
if
value
else
defaults
[
i
]
for
i
,
value
in
enumerate
(
bdl
)]
bdl_float
=
[
float
(
value
)
if
value
else
defaults
[
i
]
for
i
,
value
in
enumerate
(
bdl
)]
if
len
(
bdl_float
)
<
len
(
defaults
):
bdl_float
+=
[
defaults
[
i
]
for
i
in
range
(
len
(
bdl_float
),
len
(
defaults
))]
return
bdl_float
return
bdl_float
class
BuildDimensionsSetting
(
wxSetting
):
class
BuildDimensionsSetting
(
wxSetting
):
...
@@ -289,6 +291,8 @@ class PronterWindow(MainWindow, pronsole.pronsole):
...
@@ -289,6 +291,8 @@ class PronterWindow(MainWindow, pronsole.pronsole):
self
.
connect
()
self
.
connect
()
if
self
.
filename
is
not
None
:
if
self
.
filename
is
not
None
:
self
.
do_load
(
self
.
filename
)
self
.
do_load
(
self
.
filename
)
if
self
.
settings
.
monitor
:
self
.
setmonitor
(
None
)
def
add_cmdline_arguments
(
self
,
parser
):
def
add_cmdline_arguments
(
self
,
parser
):
pronsole
.
pronsole
.
add_cmdline_arguments
(
self
,
parser
)
pronsole
.
pronsole
.
add_cmdline_arguments
(
self
,
parser
)
...
...
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