A ticket to manage and track the code removal for upcoming deprecations in the 2021.1 release
- 'NVDAObject' (and derivatives) property 'isCurrent' now strictly returns 'controlTypes.IsCurrent'. It is no longer Optional, and thus will not return None. When an object is not current 'controlTypes.IsCurrent.NO' is returned. (#11782)
- The 'controlTypes.isCurrentLabels' has been removed, instead use the 'displayString' property on a 'controlTypes.IsCurrent' enum value. EG 'controlTypes.IsCurrent.YES.displayString' (#11782)
- `LiveText._getTextLines` has been removed. Instead, override `_getText` which returns a string of all text in the object. (#11639)
- `LiveText` objects can now calculate diffs by character. To forcibly modify this for a particular object, override the `diffAlgo` property (see the docstring for details). (#11639)
- Module level `REASON_*` constants are removed from `controlTypes` - please use `controlTypes.OutputReason` instead. (#11969)
- `REASON_QUICKNAV` has been removed from `browseMode` - use `controlTypes.OutputReason.QUICKNAV` instead. (#11969)
- The following functions are removed from the config module (#11935):
- `canStartOnSecureScreens` - use `config.isInstalledCopy` instead.
- `hasUiAccess` and `execElevated` - use them from the `systemUtils` module.
- `getConfigDirs` - use `globalVars.appArgs.configPath` instead
- `winKernel.GetTimeFormat` has been removed - use `winKernel.GetTimeFormatEx` instead (#12139)
- `winKernel.GetDateFormat` has been removed - use `winKernel.GetDateFormatEx` instead (#12139)
- `gui.DriverSettingsMixin` has been removed - use `gui.AutoSettingsMixin` (#12144)
- `speech.getSpeechForSpelling` has been removed - use `speech.getSpellingSpeech` (#12145)
- Commands cannot be directly imported from speech as `import speech; speech.ExampleCommand()` or `import speech.manager; speech.manager.ExampleCommand()` - use `from speech.commands import ExampleCommand` instead (#12126)
- `speakTextInfo` will no longer send speech through `speakWithoutPauses` if reason is `SAYALL`, as `sayAllhandler` does this manually now. (#12150)
- Support of `TextInfo`s that do not inherit from `contentRecog.BaseContentRecogTextInfo` is removed (#12157)
- `ROLE_EQUATION` has been removed from controlTypes - use `ROLE_MATH` instead (#12164)
- `driverSetting` classes are removed from `driverHandler` - please use them from `autoSettingUtils` (#12168)
- the `synthDriverHandler` module is no longer star imported into `globalCommands` and `gui.settingsDialogs` - use `from synthDriverHandler import synthFunctionExample` instead. (#12172)
- `speech.speakWithoutPauses` has been removed - please use `speech.SpeechWithoutPauses(speakFunc=speech.speak).speakWithoutPauses` instead. (#12195)
- `speech.re_last_pause` has been removed - please use `speech.SpeechWithoutPauses.re_last_pause` instead. (#12195)
- `WelcomeDialog`, `LauncherDialog` and `AskAllowUsageStatsDialog` are moved to the `gui.startupDialogs` (#12105)
- `getDocFilePath` has been moved from `gui` to the `documentationUtils` module. (#12105)
- IAccessibleHandler no longer star imports everything from IAccessible and IA2 COM interfaces - please use them directly.
- `wx.CENTRE_ON_SCREEN` and `wx.CENTER_ON_SCREEN` is deprecated, use `self.CentreOnScreen()` instead.
A ticket to manage and track the code removal for upcoming deprecations in the 2021.1 release
- IAccessibleHandler no longer star imports everything from IAccessible and IA2 COM interfaces - please use them directly.