New to Python: Why do I get the error ImportError: cannot import name 'SetWindowPos' from 'win32con'
I am trying to put together some code that will pin the pygame window to the front – after doing some research I think the simplest way to do this in python 3.9 is is with import win32gui from win32con import SetWindowPos SetWindowPos(pygame.display.get_wm_info()[‘window’], win32con.HWND_TOPMOST, 0,0,0,0, win32con.SWP_NOMOVE | win32con.SWP_NOSIZE) but I consistently get the error message… Read More New to Python: Why do I get the error ImportError: cannot import name 'SetWindowPos' from 'win32con'