Browse Source

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

Tomas Zigo 4 years ago
parent
commit
32848ab7fe
1 changed files with 3 additions and 3 deletions
  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()