Skip to content

Commit cca953b

Browse files
committed
gh-118293: Add flags for launch feedback to subprocess module
1 parent e4cbcb1 commit cca953b

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

Doc/library/subprocess.rst

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1066,6 +1066,22 @@ The :mod:`subprocess` module exposes the following constants.
10661066
Specifies that the :attr:`STARTUPINFO.wShowWindow` attribute contains
10671067
additional information.
10681068

1069+
.. data:: STARTF_FORCEONFEEDBACK
1070+
1071+
A :attr:`STARTUPINFO.dwFlags` parameter to specify that the
1072+
*Working in Background* mouse cursor will be displayed while a
1073+
process is launching. This is the default behavior for GUI
1074+
processes.
1075+
1076+
.. versionadded:: 3.13
1077+
1078+
.. data:: STARTF_FORCEOFFFEEDBACK
1079+
1080+
A :attr:`STARTUPINFO.dwFlags` parameter to specify that mouse
1081+
cursor will not be changed when launching the process.
1082+
1083+
.. versionadded:: 3.13
1084+
10691085
.. data:: CREATE_NEW_CONSOLE
10701086

10711087
The new process has a new console, instead of inheriting its parent's

Lib/subprocess.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@
8383
STD_INPUT_HANDLE, STD_OUTPUT_HANDLE,
8484
STD_ERROR_HANDLE, SW_HIDE,
8585
STARTF_USESTDHANDLES, STARTF_USESHOWWINDOW,
86+
STARTF_FORCEONFEEDBACK, STARTF_FORCEOFFFEEDBACK,
8687
ABOVE_NORMAL_PRIORITY_CLASS, BELOW_NORMAL_PRIORITY_CLASS,
8788
HIGH_PRIORITY_CLASS, IDLE_PRIORITY_CLASS,
8889
NORMAL_PRIORITY_CLASS, REALTIME_PRIORITY_CLASS,
@@ -93,6 +94,7 @@
9394
"STD_INPUT_HANDLE", "STD_OUTPUT_HANDLE",
9495
"STD_ERROR_HANDLE", "SW_HIDE",
9596
"STARTF_USESTDHANDLES", "STARTF_USESHOWWINDOW",
97+
"STARTF_FORCEONFEEDBACK", "STARTF_FORCEOFFFEEDBACK",
9698
"STARTUPINFO",
9799
"ABOVE_NORMAL_PRIORITY_CLASS", "BELOW_NORMAL_PRIORITY_CLASS",
98100
"HIGH_PRIORITY_CLASS", "IDLE_PRIORITY_CLASS",

0 commit comments

Comments
 (0)