Misc
This commit is contained in:
parent
7aafcd7c01
commit
9678f143c7
2 changed files with 4 additions and 4 deletions
|
|
@ -5,7 +5,7 @@ import wk
|
|||
|
||||
|
||||
# Classes
|
||||
REBOOT_STR = wk.ansi.color_string('Reboot', 'YELLOW')
|
||||
REBOOT_STR = wk.ui.ansi.color_string('Reboot', 'YELLOW')
|
||||
class MenuEntry():
|
||||
"""Simple class to allow cleaner code below."""
|
||||
def __init__(self, name, function=None, selected=True, **kwargs):
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
"""WizardKit: Execution functions"""
|
||||
#vim: sts=2 sw=2 ts=2
|
||||
# vim: sts=2 sw=2 ts=2
|
||||
|
||||
import json
|
||||
import logging
|
||||
|
|
@ -106,8 +106,8 @@ def build_cmd_kwargs(cmd, minimized=False, pipe=True, shell=False, **kwargs):
|
|||
|
||||
# Start minimized
|
||||
if minimized:
|
||||
startupinfo = subprocess.STARTUPINFO()
|
||||
startupinfo.dwFlags = subprocess.STARTF_USESHOWWINDOW
|
||||
startupinfo = subprocess.STARTUPINFO() # type: ignore
|
||||
startupinfo.dwFlags = subprocess.STARTF_USESHOWWINDOW # type: ignore
|
||||
startupinfo.wShowWindow = 6
|
||||
cmd_kwargs['startupinfo'] = startupinfo
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue