Commit d701a718 authored by Guillaume Seguin's avatar Guillaume Seguin

When using NoViz, don't create a fully featured viz window

parent c2b55bcb
...@@ -46,6 +46,14 @@ class NoViz(object): ...@@ -46,6 +46,14 @@ class NoViz(object):
def setlayer(self, *a): def setlayer(self, *a):
pass pass
class NoVizWindow(object):
def __init__(self):
self.p = NoViz()
def Destroy(self):
pass
class VizPane(wx.BoxSizer): class VizPane(wx.BoxSizer):
def __init__(self, root, parentpanel = None): def __init__(self, root, parentpanel = None):
...@@ -53,6 +61,8 @@ class VizPane(wx.BoxSizer): ...@@ -53,6 +61,8 @@ class VizPane(wx.BoxSizer):
if not parentpanel: parentpanel = root.panel if not parentpanel: parentpanel = root.panel
if root.settings.mainviz == "None": if root.settings.mainviz == "None":
root.gviz = NoViz() root.gviz = NoViz()
root.gwindow = NoVizWindow()
return
use2dview = root.settings.mainviz == "2D" use2dview = root.settings.mainviz == "2D"
if root.settings.mainviz == "3D": if root.settings.mainviz == "3D":
try: try:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment