Parcourir la source

wxGUI/animation: fix wxPyDeprecationWarning (#854)

Tomas Zigo il y a 4 ans
Parent
commit
a4ec6fae06
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      gui/wxpython/animation/dialogs.py

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

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