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
For performance, this method will only count up to the given maxCount number, and if there is one more above that, then sys.maxint is returned stating that many items are selected.
1434
1435
"""
1435
1436
return0
1437
+
1438
+
#: Type definition for auto prop '_get_isAboveLockScreen'
# This file is covered by the GNU General Public License.
4
4
# See the file COPYING for more details.
5
5
6
6
"""Contains the base classes that many of NVDA's classes such as NVDAObjects, virtualBuffers, appModules, synthDrivers inherit from. These base classes provide such things as auto properties, and methods and properties for scripting and key binding.
"""Provides information about a range of text in an object and facilitates access to all text in the widget.
292
296
A TextInfo represents a specific range of text, providing access to the text itself, as well as information about the text such as its formatting and any associated controls.
@@ -307,7 +311,11 @@ class TextInfo(baseObject.AutoPropertyObject):
307
311
@type bookmark: L{Bookmark}
308
312
"""
309
313
310
-
def__init__(self,obj,position):
314
+
def__init__(
315
+
self,
316
+
obj: TextInfoObjT,
317
+
position
318
+
):
311
319
"""Constructor.
312
320
Subclasses must extend this, calling the superclass method first.
313
321
@param position: The initial position of this range; one of the POSITION_* constants or a position object supported by the implementation.
# This file is covered by the GNU General Public License.
5
4
# See the file COPYING for more details.
6
5
7
-
fromtypingimportOptional, Dict
6
+
fromtypingimport (
7
+
TYPE_CHECKING,
8
+
Dict,
9
+
Optional,
10
+
)
8
11
9
12
fromlogHandlerimportlog
10
13
importbaseObject
@@ -18,6 +21,10 @@
18
21
fromspeech.typesimportSpeechSequence
19
22
fromcontrolTypesimportOutputReason
20
23
24
+
ifTYPE_CHECKING:
25
+
importNVDAObjects
26
+
27
+
21
28
runningTable=set()
22
29
23
30
defgetTreeInterceptor(obj):
@@ -84,12 +91,11 @@ class TreeInterceptor(baseObject.ScriptableObject):
84
91
85
92
shouldTrapNonCommandGestures=False#: If true then gestures that do not have a script and are not a command gesture should be trapped from going through to Windows.
0 commit comments