Prechádzať zdrojové kódy

wxGUI/animation: fix wxPyDeprecationWarning (#854)

Tomas Zigo 4 rokov pred
rodič
commit
4c4890d2d8
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      gui/wxpython/animation/dialogs.py

+ 1 - 1
gui/wxpython/animation/dialogs.py

@@ -2006,7 +2006,7 @@ class PreferencesDialog(PreferencesBaseDialog):
         self.tempFormat.Bind(
         self.tempFormat.Bind(
             wx.EVT_TEXT, lambda evt: self._setTimeFormat(
             wx.EVT_TEXT, lambda evt: self._setTimeFormat(
                 self.tempFormat.GetValue()))
                 self.tempFormat.GetValue()))
-        self.tempFormat.SetToolTipString(
+        self.tempFormat.SetToolTip(
             _(
             _(
                 "Click and then press key up or down to preview "
                 "Click and then press key up or down to preview "
                 "different date and time formats. "
                 "different date and time formats. "