From e73fed82c4b1fe1f3ad1e2ad04a43f622f640568 Mon Sep 17 00:00:00 2001 From: Leonard de Ruijter Date: Thu, 27 Jun 2019 06:55:35 +0200 Subject: [PATCH] Restore VoiceSettingsSlider to ensure we don't break compatibility with Audio Themes add-on --- source/gui/settingsDialogs.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/source/gui/settingsDialogs.py b/source/gui/settingsDialogs.py index ee9fd251d35..fa71807391f 100644 --- a/source/gui/settingsDialogs.py +++ b/source/gui/settingsDialogs.py @@ -48,6 +48,7 @@ import time import keyLabels from dpiScalingHelper import DpiScalingHelperMixin +import warnings class SettingsDialog(with_metaclass(guiHelper.SIPABCMeta, wx.Dialog, DpiScalingHelperMixin)): """A settings dialog. @@ -3337,3 +3338,11 @@ def onOk(self, evt): _("Error"), wx.OK | wx.ICON_ERROR) super(InputGesturesDialog, self).onOk(evt) + +class VoiceSettingsSlider(nvdaControls.EnhancedInputSlider): + """@Deprecated: use L{gui.NVDAControls.EnhancedInputSlider} instead.""" + + def __init__(self,*args, **kwargs): + warnings.warn("gui.settingsDialogs.VoiceSettingsSlider is deprecated. Use gui.NVDAControls.EnhancedInputSlider instead", + DeprecationWarning, stacklevel=2) + super(VoiceSettingsSlider,self).__init__(*args,**kwargs)