Skip to content

Commit

Permalink
issue #110
Browse files Browse the repository at this point in the history
Ignore platform warnings
  • Loading branch information
pozitronik committed Feb 29, 2024
1 parent 3caf4ca commit a52a4cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sinner/gui/controls/FramePlayer/PygameFramePlayer.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,11 +131,11 @@ def set_topmost(self, on_top: bool = True) -> None:
user32 = ctypes.WinDLL("user32")
user32.SetWindowPos.restype = wintypes.HWND
user32.SetWindowPos.argtypes = [wintypes.HWND, wintypes.HWND, wintypes.INT, wintypes.INT, wintypes.INT, wintypes.INT, wintypes.UINT]
user32.SetWindowPos(pygame.display.get_wm_info()['window'], HWND_TOPMOST if on_top else HWND_NOTOPMOST, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE)
user32.SetWindowPos(pygame.display.get_wm_info()['window'], HWND_TOPMOST if on_top else HWND_NOTOPMOST, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE) # type: ignore[attr-defined] # platform issue

def bring_to_front(self) -> None:
if WINDOWS:
user32 = ctypes.WinDLL("user32")
user32.SetWindowPos.restype = wintypes.HWND
user32.SetWindowPos.argtypes = [wintypes.HWND, wintypes.HWND, wintypes.INT, wintypes.INT, wintypes.INT, wintypes.INT, wintypes.UINT]
user32.SetWindowPos(pygame.display.get_wm_info()['window'], HWND_TOP, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE)
user32.SetWindowPos(pygame.display.get_wm_info()['window'], HWND_TOP, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE) # type: ignore[attr-defined] # platform issue

0 comments on commit a52a4cb

Please sign in to comment.