Skip to content

Commit

Permalink
wxGUI: Fixed E266 in nviz/ (#4547)
Browse files Browse the repository at this point in the history
  • Loading branch information
arohanajit authored Oct 18, 2024
1 parent 5cff700 commit 2a0ad5f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 47 deletions.
2 changes: 1 addition & 1 deletion .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ per-file-ignores =
gui/scripts/d.wms.py: E501
gui/wxpython/image2target/g.gui.image2target.py: E501
gui/wxpython/modules/*: F841, E722
gui/wxpython/nviz/*: E266, E722, F403, F405
gui/wxpython/nviz/*: E722, F403, F405
gui/wxpython/photo2image/*: F841, E722, E265
gui/wxpython/photo2image/g.gui.photo2image.py: E501, F841
gui/wxpython/psmap/*: F841, E266, E722
Expand Down
46 changes: 0 additions & 46 deletions gui/wxpython/nviz/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -1196,33 +1196,6 @@ def _createSurfacePage(self, parent):
flag=wx.EXPAND | wx.LEFT | wx.RIGHT | wx.BOTTOM,
border=3,
)
#
# mask
#
# box = wx.StaticBox (parent = panel, id = wx.ID_ANY,
# label = " %s " % (_("Mask")))
## boxSizer = wx.StaticBoxSizer(box, wx.VERTICAL)
## gridSizer = wx.GridBagSizer(vgap = 5, hgap = 5)
##
# gridSizer.Add(item = wx.StaticText(parent = panel, id = wx.ID_ANY,
# label = _("Mask zeros:")),
# pos = (0, 0), flag = wx.ALIGN_CENTER_VERTICAL)
##
# elev = wx.CheckBox(parent = panel, id = wx.ID_ANY,
# label = _("by elevation"))
# elev.Enable(False) # TODO: not implemented yet
## gridSizer.Add(item = elev, pos = (0, 1))
##
# color = wx.CheckBox(parent = panel, id = wx.ID_ANY,
# label = _("by color"))
# color.Enable(False) # TODO: not implemented yet
## gridSizer.Add(item = color, pos = (0, 2))
##
# boxSizer.Add(item = gridSizer, proportion = 1,
# flag = wx.ALL | wx.EXPAND, border = 3)
# pageSizer.Add(item = boxSizer, proportion = 0,
## flag = wx.EXPAND | wx.LEFT | wx.RIGHT | wx.BOTTOM,
# border = 3)

panel.SetSizer(pageSizer)

Expand Down Expand Up @@ -1852,24 +1825,6 @@ def _createVectorPage(self, parent):
icolor.Bind(csel.EVT_COLOURSELECT, self.OnVectorPoints)
gridSizer.Add(icolor, flag=wx.ALIGN_CENTER_VERTICAL | wx.ALIGN_LEFT, pos=(0, 4))

# icon width - seems to do nothing
# gridSizer.Add(item = wx.StaticText(parent = panel, id = wx.ID_ANY,
# label = _("width")),
# pos = (1, 1), flag = wx.ALIGN_CENTER_VERTICAL |
# wx.ALIGN_RIGHT)
##
# iwidth = wx.SpinCtrl(parent = panel, id = wx.ID_ANY, size = (65, -1),
## initial = 1,
## min = 1,
# max = 1e6)
# iwidth.SetName('value')
# iwidth.SetValue(100)
## self.win['vector']['points']['width'] = iwidth.GetId()
## iwidth.Bind(wx.EVT_SPINCTRL, self.OnVectorPoints)
## iwidth.Bind(wx.EVT_TEXT, self.OnVectorPoints)
# gridSizer.Add(item = iwidth, pos = (1, 2),
# flag = wx.ALIGN_CENTER_VERTICAL | wx.ALIGN_LEFT)
# icon symbol
gridSizer.Add(
StaticText(parent=panel, id=wx.ID_ANY, label=_("symbol:")),
pos=(0, 5),
Expand Down Expand Up @@ -3084,7 +3039,6 @@ def _createIsosurfacePanel(self, parent):
)
value.Bind(wx.EVT_TEXT_ENTER, self.OnVolumeIsosurfMap)
value.Bind(wx.EVT_KILL_FOCUS, self.OnVolumeIsosurfMap)
## value.Bind(wx.EVT_TEXT, self.OnVolumeIsosurfMap)
else:
size = (65, -1)
value = SpinCtrl(parent=panel, id=wx.ID_ANY, size=size, initial=0)
Expand Down

0 comments on commit 2a0ad5f

Please sign in to comment.