瀏覽代碼

wxGUI/animation: fix wxPyDeprecationWarning (#854)

Tomas Zigo 4 年之前
父節點
當前提交
4c4890d2d8
共有 1 個文件被更改,包括 1 次插入1 次删除
  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(
             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. "