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
d701a718
Commit
d701a718
authored
Nov 07, 2014
by
Guillaume Seguin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
When using NoViz, don't create a fully featured viz window
parent
c2b55bcb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
viz.py
printrun/gui/viz.py
+10
-0
No files found.
printrun/gui/viz.py
View file @
d701a718
...
...
@@ -46,6 +46,14 @@ class NoViz(object):
def
setlayer
(
self
,
*
a
):
pass
class
NoVizWindow
(
object
):
def
__init__
(
self
):
self
.
p
=
NoViz
()
def
Destroy
(
self
):
pass
class
VizPane
(
wx
.
BoxSizer
):
def
__init__
(
self
,
root
,
parentpanel
=
None
):
...
...
@@ -53,6 +61,8 @@ class VizPane(wx.BoxSizer):
if
not
parentpanel
:
parentpanel
=
root
.
panel
if
root
.
settings
.
mainviz
==
"None"
:
root
.
gviz
=
NoViz
()
root
.
gwindow
=
NoVizWindow
()
return
use2dview
=
root
.
settings
.
mainviz
==
"2D"
if
root
.
settings
.
mainviz
==
"3D"
:
try
:
...
...
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