Virtual Widgets

Virtual Widgets#

Important

PyScreenReader is still under active development. APIs are subjects to change.

A Virtual Widget is an abstraction that represents a UI element in a platform-independent way. It typically captures semantic information such as:

  • Role (e.g., button, text, image)

  • State (e.g., focused, selected)

  • Label or name

  • Bounds or layout

This abstraction allows you to process or reason about UI content without needing the actual GUI framework.