浏览代码

wxGUI g.gui.animation: fix wx.CheckBox widget deprecation warning (#718)

Tomas Zigo 4 年之前
父节点
当前提交
32848ab7fe
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      gui/wxpython/animation/dialogs.py

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

@@ -42,8 +42,8 @@ from gui_core.forms import GUI
 from core.settings import UserSettings
 from gui_core.gselect import Select
 from gui_core.widgets import FloatValidator
-from gui_core.wrap import SpinCtrl, CheckBox, TextCtrl, Button, \
-    BitmapButton, StaticText, StaticBox, Choice, RadioButton, EmptyImage
+from gui_core.wrap import BitmapButton, Button, CheckBox, Choice, \
+    ComboBox, EmptyImage, RadioButton, SpinCtrl, StaticBox, StaticText, TextCtrl
 
 from animation.utils import TemporalMode, getRegisteredMaps, getNameAndLayer, getCpuCount
 from animation.data import AnimationData, AnimLayer
@@ -2017,7 +2017,7 @@ class PreferencesDialog(PreferencesBaseDialog):
             pos=(
                 row,
                 0))
-        self.tempFormat = wx.ComboBox(parent=panel, name='GetValue')
+        self.tempFormat = ComboBox(parent=panel, name='GetValue')
         self.tempFormat.SetItems(self._timeFormats)
         self.tempFormat.SetValue(self._initFormat)
         self.winId['animation:temporal:format'] = self.tempFormat.GetId()