Skip to content

Commit

Permalink
chore: Improve import statements
Browse files Browse the repository at this point in the history
  • Loading branch information
Zingzy committed Jun 7, 2024
1 parent 1d95c39 commit 597209c
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions hPyT/hPyT.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import math
import threading

try:
import ctypes
import math
import threading
from ctypes.wintypes import HWND, RECT, UINT
except ImportError:
raise ImportError("hPyT import Error : No Windows Enviorment Found")
Expand Down Expand Up @@ -563,7 +564,8 @@ def module_find(window) -> int:
except:
pass
try:
return window.root_window.get_window_info().window
return window.root_window.get_window_info().window # for kivy
except:
pass
return window # others / notfound

return window # others / notfound

0 comments on commit 597209c

Please sign in to comment.