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
568aacd8
Commit
568aacd8
authored
Jan 13, 2014
by
Guillaume Seguin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Include G-Code plating in tools menu
parent
70f3d5ec
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
pronterface.py
printrun/pronterface.py
+9
-0
No files found.
printrun/pronterface.py
View file @
568aacd8
...
@@ -541,6 +541,7 @@ class PronterWindow(MainWindow, pronsole.pronsole):
...
@@ -541,6 +541,7 @@ class PronterWindow(MainWindow, pronsole.pronsole):
m
=
wx
.
Menu
()
m
=
wx
.
Menu
()
self
.
Bind
(
wx
.
EVT_MENU
,
self
.
do_editgcode
,
m
.
Append
(
-
1
,
_
(
"&Edit..."
),
_
(
" Edit open file"
)))
self
.
Bind
(
wx
.
EVT_MENU
,
self
.
do_editgcode
,
m
.
Append
(
-
1
,
_
(
"&Edit..."
),
_
(
" Edit open file"
)))
self
.
Bind
(
wx
.
EVT_MENU
,
self
.
plate
,
m
.
Append
(
-
1
,
_
(
"Plater"
),
_
(
" Compose 3D models into a single plate"
)))
self
.
Bind
(
wx
.
EVT_MENU
,
self
.
plate
,
m
.
Append
(
-
1
,
_
(
"Plater"
),
_
(
" Compose 3D models into a single plate"
)))
self
.
Bind
(
wx
.
EVT_MENU
,
self
.
plate_gcode
,
m
.
Append
(
-
1
,
_
(
"G-Code Plater"
),
_
(
" Compose G-Codes into a single plate"
)))
self
.
Bind
(
wx
.
EVT_MENU
,
self
.
exclude
,
m
.
Append
(
-
1
,
_
(
"Excluder"
),
_
(
" Exclude parts of the bed from being printed"
)))
self
.
Bind
(
wx
.
EVT_MENU
,
self
.
exclude
,
m
.
Append
(
-
1
,
_
(
"Excluder"
),
_
(
" Exclude parts of the bed from being printed"
)))
self
.
Bind
(
wx
.
EVT_MENU
,
self
.
project
,
m
.
Append
(
-
1
,
_
(
"Projector"
),
_
(
" Project slices"
)))
self
.
Bind
(
wx
.
EVT_MENU
,
self
.
project
,
m
.
Append
(
-
1
,
_
(
"Projector"
),
_
(
" Project slices"
)))
self
.
menustrip
.
Append
(
m
,
_
(
"&Tools"
))
self
.
menustrip
.
Append
(
m
,
_
(
"&Tools"
))
...
@@ -789,6 +790,14 @@ Printrun. If not, see <http://www.gnu.org/licenses/>."""
...
@@ -789,6 +790,14 @@ Printrun. If not, see <http://www.gnu.org/licenses/>."""
circular_platform
=
self
.
settings
.
circular_bed
,
circular_platform
=
self
.
settings
.
circular_bed
,
simarrange_path
=
self
.
settings
.
simarrange_path
)
.
Show
()
simarrange_path
=
self
.
settings
.
simarrange_path
)
.
Show
()
def
plate_gcode
(
self
,
e
):
from
.
import
gcodeplater
as
plater
print
_
(
"G-Code plate function activated"
)
plater
.
GcodePlater
(
size
=
(
800
,
580
),
callback
=
self
.
platecb
,
parent
=
self
,
build_dimensions
=
self
.
build_dimensions_list
,
circular_platform
=
self
.
settings
.
circular_bed
)
.
Show
()
def
platecb
(
self
,
name
):
def
platecb
(
self
,
name
):
print
_
(
"Plated
%
s"
)
%
name
print
_
(
"Plated
%
s"
)
%
name
self
.
loadfile
(
None
,
name
)
self
.
loadfile
(
None
,
name
)
...
...
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