diff --git a/dist/PyWinCtl-0.3-py3-none-any.whl b/dist/PyWinCtl-0.3-py3-none-any.whl index 586e083..04fae9c 100644 Binary files a/dist/PyWinCtl-0.3-py3-none-any.whl and b/dist/PyWinCtl-0.3-py3-none-any.whl differ diff --git a/tests/test_pywinctl.py b/tests/test_pywinctl.py index b712732..027c73b 100644 --- a/tests/test_pywinctl.py +++ b/tests/test_pywinctl.py @@ -495,25 +495,13 @@ def basic_macOS(npw: pywinctl.Window): print() parent = npw.getParent() if parent: - parentHandle = 0 - parentName = "''" - try: - parentApp, parentName = parent - parentWin = pywinctl.Window(parentApp, parentName) - parentHandle = parentWin.getHandle() - except: - pass - print("WINDOW PARENT:", parentHandle, "/", parentName) + parentApp, parentName = parent + print("WINDOW PARENT:", parentApp, "/", parentName) print() children = npw.getChildren() for child in children: - childName = "''" - try: - childWin = pywinctl.Window(child) - childName = childWin.title - except: - pass - print("WINDOW CHILD:", child, "/", childName) + appName, childName = child + print("WINDOW CHILD:", appName, "/", childName) print() # Test maximize/minimize/restore.