You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: source/gui/__init__.py
+28-36Lines changed: 28 additions & 36 deletions
Original file line number
Diff line number
Diff line change
@@ -24,6 +24,13 @@
24
24
importqueueHandler
25
25
importcore
26
26
from . importguiHelper
27
+
frombuildVersionimportversion_year
28
+
from .messageimport (
29
+
isInMessageBoxas_isInMessageBox,
30
+
# messageBox is accessed through `gui.messageBox` as opposed to `gui.message.messageBox` throughout NVDA,
31
+
# be cautious when removing
32
+
messageBox,
33
+
)
27
34
from .settingsDialogsimport (
28
35
SettingsDialog,
29
36
DefaultDictionaryDialog,
@@ -50,7 +57,13 @@
50
57
51
58
### Globals
52
59
mainFrame=None
53
-
isInMessageBox=False
60
+
61
+
ifversion_year<2022:
62
+
def__getattr__(name):
63
+
ifname=="isInMessageBox":
64
+
log.warning("gui.isInMessageBox is deprecated and will be removed in 2022.1. Consult the changes for developers in 2022.1 for advice on alternatives.")
65
+
return_isInMessageBox()
66
+
raiseAttributeError(f"module {__name__} has no attribute {name}")
# Translators: A message to warn the user when starting the COM Registration Fixing tool
333
348
_("You are about to run the COM Registration Fixing tool. This tool will try to fix common system problems that stop NVDA from being able to access content in many programs including Firefox and Internet Explorer. This tool must make changes to the System registry and therefore requires administrative access. Are you sure you wish to proceed?"),
334
349
# Translators: The title of the warning dialog displayed when launching the COM Registration Fixing tool
0 commit comments