Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Arohan Ajit authored and Arohan Ajit committed Oct 30, 2024
1 parent fd5d79a commit f89cfe8
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions gui/wxpython/nviz/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -737,7 +737,6 @@ def _createDataPage(self):
self.foldpanelData = fpb.FoldPanelBar(
parent=self.mainPanelData,
id=wx.ID_ANY,
style=fpb.FPB_SINGLE_FOLD,
agwStyle=fpb.FPB_SINGLE_FOLD,
)

Expand Down Expand Up @@ -805,8 +804,7 @@ def _createAppearancePage(self):
self.foldpanelAppear = fpb.FoldPanelBar(
parent=self.mainPanelAppear,
id=wx.ID_ANY,
style=fpb.FPB_SINGLE_FOLD,
extraStyle=fpb.FPB_SINGLE_FOLD,
agwStyle=fpb.FPB_SINGLE_FOLD,
)

self.foldpanelAppear.Bind(fpb.EVT_CAPTIONBAR, self.OnPressCaption)
Expand Down Expand Up @@ -3336,7 +3334,7 @@ def OnSetSurface(self, event):
name = event.GetString()
try:
self._getLayerPropertiesByName(name, mapType="raster")["surface"]
except (AttributeError, TypeError):
except (AttributeError, TypeError, KeyError):
self.EnablePage("fringe", False)
return

Expand Down Expand Up @@ -3372,7 +3370,7 @@ def OnSetRaster3D(self, event):
name = event.GetString()
try:
data = self._getLayerPropertiesByName(name, mapType="raster_3d")["volume"]
except (AttributeError, TypeError):
except (AttributeError, TypeError, KeyError):
self.EnablePage("volume", False)
return

Expand Down

0 comments on commit f89cfe8

Please sign in to comment.