Skip to content

Commit

Permalink
fixed 841
Browse files Browse the repository at this point in the history
  • Loading branch information
Arohan Ajit authored and Arohan Ajit committed Oct 22, 2024
1 parent 67a1609 commit 6c7c9f2
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 13 deletions.
4 changes: 2 additions & 2 deletions .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ per-file-ignores =
gui/scripts/d.wms.py: E501
gui/wxpython/image2target/g.gui.image2target.py: E501
gui/wxpython/nviz/*: E722
gui/wxpython/photo2image/*: F841, E722, E265
gui/wxpython/photo2image/g.gui.photo2image.py: E501, F841
gui/wxpython/photo2image/*: E722
gui/wxpython/photo2image/g.gui.photo2image.py: E501
gui/wxpython/psmap/*: F841, E266, E722
gui/wxpython/vdigit/*: F841, E722, F405, F403
gui/wxpython/animation/g.gui.animation.py: E501
Expand Down
2 changes: 1 addition & 1 deletion gui/wxpython/photo2image/g.gui.photo2image.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def main():

app = wx.App()

wizard = GCPWizard(
GCPWizard(
parent=None,
giface=StandaloneGrassInterface(),
group=group,
Expand Down
10 changes: 2 additions & 8 deletions gui/wxpython/photo2image/ip2i_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -1107,7 +1107,7 @@ def OnGeorect(self, event):
else:
flags = "a"

busy = wx.BusyInfo(_("Rectifying images, please wait..."), parent=self)
wx.BusyInfo(_("Rectifying images, please wait..."), parent=self)
wx.GetApp().Yield()

ret, msg = RunCommand(
Expand All @@ -1130,9 +1130,7 @@ def OnGeorect(self, event):
print(self.grwiz.src_map, file=sys.stderr)
print(msg, file=sys.stderr)

busy = wx.BusyInfo(
_("Writing output image to group, please wait..."), parent=self
)
wx.BusyInfo(_("Writing output image to group, please wait..."), parent=self)
wx.GetApp().Yield()

ret1, msg1 = RunCommand(
Expand Down Expand Up @@ -1253,7 +1251,6 @@ def OnGROrder(self, event):

elif self.gr_order == 2:
minNumOfItems = 6
diff = 6 - numOfItems
# self.SetStatusText(_(
# "Insufficient points, 6+ points needed for 2nd order"))

Expand Down Expand Up @@ -1556,7 +1553,6 @@ def OnZoomToTarget(self, event):

def OnZoomMenuGCP(self, event):
"""Popup Zoom menu"""
point = wx.GetMousePosition()
zoommenu = Menu()
# Add items to the menu

Expand Down Expand Up @@ -2467,7 +2463,6 @@ def UpdateSettings(self):

srcrender = False
tgtrender = False
reload_target = False
if self.new_src_map != src_map:
# remove old layer
layers = self.parent.grwiz.SrcMap.GetListOfLayers()
Expand Down Expand Up @@ -2499,7 +2494,6 @@ def UpdateSettings(self):
del layers[0]
layers = self.parent.grwiz.TgtMap.GetListOfLayers()
# self.parent.grwiz.TgtMap.DeleteAllLayers()
reload_target = True
tgt_map["raster"] = self.new_tgt_map["raster"]

if tgt_map["raster"] != "":
Expand Down
2 changes: 0 additions & 2 deletions gui/wxpython/photo2image/ip2i_mapdisplay.py
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,6 @@ def PrintMenu(self, event):
"""
Print options and output menu for map display
"""
point = wx.GetMousePosition()
printmenu = Menu()
# Add items to the menu
setup = wx.MenuItem(printmenu, wx.ID_ANY, _("Page setup"))
Expand Down Expand Up @@ -510,7 +509,6 @@ def SaveDisplayRegion(self, event):

def OnZoomMenu(self, event):
"""Popup Zoom menu"""
point = wx.GetMousePosition()
zoommenu = Menu()
# Add items to the menu

Expand Down

0 comments on commit 6c7c9f2

Please sign in to comment.