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
dc2a4250
Commit
dc2a4250
authored
May 18, 2013
by
Guillaume Seguin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix reparenting error
parent
e6fe3551
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
gviz.py
printrun/gviz.py
+3
-3
No files found.
printrun/gviz.py
View file @
dc2a4250
...
@@ -27,7 +27,7 @@ class window(wx.Frame):
...
@@ -27,7 +27,7 @@ class window(wx.Frame):
self
.
SetStatusText
(
"Layer number and Z position show here when you scroll"
);
self
.
SetStatusText
(
"Layer number and Z position show here when you scroll"
);
panel
=
wx
.
Panel
(
self
,
-
1
)
panel
=
wx
.
Panel
(
self
,
-
1
)
self
.
p
=
gviz
(
panel
,
size
=
size
,
build_dimensions
=
build_dimensions
,
grid
=
grid
,
extrusion_width
=
extrusion_width
)
self
.
p
=
gviz
(
panel
,
size
=
size
,
build_dimensions
=
build_dimensions
,
grid
=
grid
,
extrusion_width
=
extrusion_width
,
realparent
=
self
)
vbox
=
wx
.
BoxSizer
(
wx
.
VERTICAL
)
vbox
=
wx
.
BoxSizer
(
wx
.
VERTICAL
)
toolbar
=
wx
.
ToolBar
(
panel
,
-
1
,
style
=
wx
.
TB_HORIZONTAL
|
wx
.
NO_BORDER
)
toolbar
=
wx
.
ToolBar
(
panel
,
-
1
,
style
=
wx
.
TB_HORIZONTAL
|
wx
.
NO_BORDER
)
...
@@ -134,10 +134,10 @@ class gviz(wx.Panel):
...
@@ -134,10 +134,10 @@ class gviz(wx.Panel):
self
.
_showall
=
showall
self
.
_showall
=
showall
showall
=
property
(
_get_showall
,
_set_showall
)
showall
=
property
(
_get_showall
,
_set_showall
)
def
__init__
(
self
,
parent
,
size
=
(
200
,
200
),
build_dimensions
=
[
200
,
200
,
100
,
0
,
0
,
0
],
grid
=
(
10
,
50
),
extrusion_width
=
0.5
):
def
__init__
(
self
,
parent
,
size
=
(
200
,
200
),
build_dimensions
=
[
200
,
200
,
100
,
0
,
0
,
0
],
grid
=
(
10
,
50
),
extrusion_width
=
0.5
,
realparent
=
None
):
wx
.
Panel
.
__init__
(
self
,
parent
,
-
1
,
size
=
size
)
wx
.
Panel
.
__init__
(
self
,
parent
,
-
1
,
size
=
size
)
self
.
SetMinSize
((
150
,
150
))
self
.
SetMinSize
((
150
,
150
))
self
.
parent
=
parent
self
.
parent
=
realparent
if
realparent
else
parent
self
.
size
=
size
self
.
size
=
size
self
.
build_dimensions
=
build_dimensions
self
.
build_dimensions
=
build_dimensions
self
.
grid
=
grid
self
.
grid
=
grid
...
...
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