Преглед изворни кода

wxGUI/animation: fix wxPyDeprecationWarning (#854)

Tomas Zigo пре 4 година
родитељ
комит
a4ec6fae06
1 измењених фајлова са 1 додато и 1 уклоњено
  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. "