def MoveWindow(windowID, xpos=None, ypos=None, width=None, height=None, center=None):

    (left, top, right, bottom) = win32gui.GetWindowRect(windowID)
    if xpos is None and ypos is None:
        xpos = left
        ypos = top
    if width is None and height is None:
        width = right - left
        height = bottom - top
    # Case: only ypos provided
    if xpos is None and ypos is not None:
        xpos = left
    if ypos is None and xpos is not None:
        ypos = top
    # Case: only height provided
    if not width:
        width = right - left
    if not height:
        height = bottom - top
    if center:
        screenx = win32api.GetSystemMetrics(win32con.SM_CXSCREEN)
        screeny = win32api.GetSystemMetrics(win32con.SM_CYSCREEN)
        xpos = int(math.floor((width - screenx) / 2))
        ypos = int(math.floor((screeny - height) / 2))
        if xpos < 0: xpos = 0
        if ypos < 0: ypos = 0
    win32gui.MoveWindow(windowID, xpos, ypos, width, height, 1)


#noinspection PyUnusedLocal
dataset/ETHPy150Open cztomczak/cefpython/cefpython/cef3/windows/binaries_32bit/cefwindow.py/MoveWindow/swapped operands of `-`