Skip to content

Commit

Permalink
wxGUI/g.gui.image2target: fix show Settings dialog (#1037)
Browse files Browse the repository at this point in the history
  • Loading branch information
tmszi committed Oct 23, 2020
1 parent d8476a4 commit 936c83f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
4 changes: 2 additions & 2 deletions gui/wxpython/gui_core/wrap.py
Expand Up @@ -238,7 +238,7 @@ def __init__(self, *args, **kwargs):

def SetToolTip(self, tip):
if wxPythonPhoenix:
wx.StaticText.SetToolTip(self, tipString=tip)
wx.StaticText.SetToolTip(self, tip)
else:
wx.StaticText.SetToolTipString(self, tip)

Expand Down Expand Up @@ -327,7 +327,7 @@ def IsItemChecked(self, item):
else:
return super(ListCtrl, self).IsChecked(item)


if CheckWxVersion([4, 1, 0]):
class CheckListCtrlMixin():
"""This class pretends to be deprecated CheckListCtrlMixin mixin and
Expand Down
9 changes: 4 additions & 5 deletions gui/wxpython/image2target/ii2t_manager.py
Expand Up @@ -2755,11 +2755,10 @@ def __CreateSymbologyPage(self, notebook):
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,
Expand Down

0 comments on commit 936c83f

Please sign in to comment.