Преглед на файлове

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. "