Browse Source

wxGUI/g.gui.image2target: fix show Settings dialog (#1037)

Tomas Zigo 4 years ago
parent
commit
936c83f8be
2 changed files with 6 additions and 7 deletions
  1. 2 2
      gui/wxpython/gui_core/wrap.py
  2. 4 5
      gui/wxpython/image2target/ii2t_manager.py

+ 2 - 2
gui/wxpython/gui_core/wrap.py

@@ -238,7 +238,7 @@ class StaticText(wx.StaticText):
 
     def SetToolTip(self, tip):
         if wxPythonPhoenix:
-            wx.StaticText.SetToolTip(self, tipString=tip)
+            wx.StaticText.SetToolTip(self, tip)
         else:
             wx.StaticText.SetToolTipString(self, tip)
 
@@ -327,7 +327,7 @@ class ListCtrl(wx.ListCtrl):
         else:
             return super(ListCtrl, self).IsChecked(item)
 
-           
+
 if CheckWxVersion([4, 1, 0]):
     class CheckListCtrlMixin():
         """This class pretends to be deprecated CheckListCtrlMixin mixin and

+ 4 - 5
gui/wxpython/image2target/ii2t_manager.py

@@ -2755,11 +2755,10 @@ class GrSettingsDialog(wx.Dialog):
             parent=panel, id=wx.ID_ANY,
             label=_("Highlight RMS error > M + SD * factor:"))
         rmslabel.SetToolTip(
-            wx.ToolTip(
-                _(
-                    "Highlight GCPs with an RMS error larger than \n"
-                    "mean + standard deviation * given factor. \n"
-                    "Recommended values for this factor are between 1 and 2.")))
+            _(
+                "Highlight GCPs with an RMS error larger than \n"
+                "mean + standard deviation * given factor. \n"
+                "Recommended values for this factor are between 1 and 2."))
         rmsgridSizer.Add(
             rmslabel,
             flag=wx.ALIGN_CENTER_VERTICAL,