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
bf77d84f
Commit
bf77d84f
authored
Jul 05, 2013
by
Guillaume Seguin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Propagate build dimensions to plater
parent
61853850
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
plater.py
plater.py
+2
-2
pronterface.py
pronterface.py
+3
-3
No files found.
plater.py
View file @
bf77d84f
...
...
@@ -236,7 +236,7 @@ class showstl(wx.Window):
del
dc
class
stlwin
(
wx
.
Frame
):
def
__init__
(
self
,
filenames
=
[],
size
=
(
800
,
580
),
callback
=
None
,
parent
=
None
):
def
__init__
(
self
,
filenames
=
[],
size
=
(
800
,
580
),
callback
=
None
,
parent
=
None
,
build_dimensions
=
None
):
wx
.
Frame
.
__init__
(
self
,
parent
,
title
=
_
(
"Plate building tool"
),
size
=
size
)
self
.
filenames
=
filenames
if
hasattr
(
sys
,
"frozen"
)
and
sys
.
frozen
==
"windows_exe"
:
...
...
@@ -275,7 +275,7 @@ class stlwin(wx.Frame):
self
.
mainsizer
.
Add
(
self
.
panel
)
#self.mainsizer.AddSpacer(10)
if
glview
:
self
.
s
=
stlview
.
StlViewPanel
(
self
,
(
580
,
580
))
self
.
s
=
stlview
.
StlViewPanel
(
self
,
(
580
,
580
)
,
build_dimensions
=
build_dimensions
)
else
:
self
.
s
=
showstl
(
self
,
(
580
,
580
),
(
0
,
0
))
self
.
mainsizer
.
Add
(
self
.
s
,
1
,
wx
.
EXPAND
)
...
...
pronterface.py
View file @
bf77d84f
...
...
@@ -705,11 +705,11 @@ class PronterWindow(MainWindow, pronsole.pronsole):
def
plate
(
self
,
e
):
import
plater
print
"plate function activated"
plater
.
stlwin
(
size
=
(
800
,
580
),
callback
=
self
.
platecb
,
parent
=
self
)
.
Show
()
print
_
(
"Plate function activated"
)
plater
.
stlwin
(
size
=
(
800
,
580
),
callback
=
self
.
platecb
,
parent
=
self
,
build_dimensions
=
self
.
build_dimensions_list
)
.
Show
()
def
platecb
(
self
,
name
):
print
"plated: "
+
name
print
_
(
"Plated
%
s"
)
%
name
self
.
loadfile
(
None
,
name
)
def
sdmenu
(
self
,
e
):
...
...
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