from ctypes.wintypes import windll, c_int, byref, RGB COLOR_BACKGROUND = 1 # from winuser.h or win32con SetSysColors = windll.user32.SetSysColors which_color = RGB(255,0,0) # red SetSysColors(1, byref(c_int(COLOR_BACKGROUND)), byref(c_int(which_color)))