Skip to content

Commit

Permalink
When using NoViz, don't create a fully featured viz window
Browse files Browse the repository at this point in the history
  • Loading branch information
iXce committed Nov 7, 2014
1 parent c2b55bc commit d701a71
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions printrun/gui/viz.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,23 @@ def Refresh(self, *a):
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):
super(VizPane, self).__init__(wx.VERTICAL)
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:
Expand Down

0 comments on commit d701a71

Please sign in to comment.