Message404122
The force_hide option could also force the use of a new hidden window, even if the current process has a console. That way the output is always hidden. For example:
if force_hide or shell:
if force_hide and not (creationflags & _winapi.DETACHED_PROCESS):
creationflags |= _winapi.CREATE_NEW_CONSOLE
startupinfo.dwFlags |= _winapi.STARTF_USESHOWWINDOW
startupinfo.wShowWindow = _winapi.SW_HIDE
One can also use CREATE_NO_WINDOW to create a console that has no window, as opposed to a hidden window. For example:
if force_no_window:
if creationflags & _winapi.CREATE_NEW_CONSOLE:
raise ValueError('force_no_window cannot be used with '
'CREATE_NEW_CONSOLE')
creationflags |= _winapi.CREATE_NO_WINDOW |
|
Date |
User |
Action |
Args |
2021-10-16 23:27:43 | eryksun | set | recipients:
+ eryksun, paul.moore, tim.golden, zach.ware, steve.dower, iMath, ohno, mmaswg |
2021-10-16 23:27:43 | eryksun | set | messageid: <1634426863.11.0.264030851367.issue30082@roundup.psfhosted.org> |
2021-10-16 23:27:43 | eryksun | link | issue30082 messages |
2021-10-16 23:27:43 | eryksun | create | |
|