{"library":"pywinbox","title":"PyWinBox","description":"Cross-platform and multi-monitor toolkit to handle rectangular areas and window boxes. Current version 0.7 provides support for Windows, Linux (X11, not Wayland), and macOS. Development is active but releases are irregular.","language":"python","status":"active","last_verified":"Fri May 01","install":{"commands":["pip install pywinbox"],"cli":null},"imports":["from pywinbox import PyWinBox"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"from pywinbox import PyWinBox\n\n# Create a PyWinBox instance\nbox = PyWinBox()\n\n# Get the window of a running application (e.g., notepad on Windows, gnome-terminal on Linux)\n# Replace 'notepad' with the actual window title\n# For Linux, the title may not match exactly; use 'gnome-terminal' as an example\ntry:\n    window = box.getWindow(title='notepad')\n    print(f\"Window found: {window}\")\n    print(f\"Bounding box: {box.getBox(title='notepad')}\")\nexcept Exception as e:\n    print(f\"Error: {e}\")","lang":"python","description":"Create a PyWinBox instance and retrieve a window by title, then print its bounding box.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}