autopilot.process.Window

class autopilot.process.Window
x_id

Get the X11 Window Id.

x_win

Get the X11 window object of the underlying window.

get_wm_state

Get the state of the underlying window.

name

Get the window name.

Note

This may change according to the current locale. If you want a unique string to match windows against, use the x_id instead.

title

Get the window title.

This may be different from the application name.

Note

This may change depending on the current locale.

geometry

Get the geometry for this window.

Returns:Tuple containing (x, y, width, height).
is_maximized

Is the window maximized?

Maximized in this case means both maximized vertically and horizontally. If a window is only maximized in one direction it is not considered maximized.

application

Get the application that owns this window.

This method may return None if the window does not have an associated application. The ‘desktop’ window is one such example.

user_visible

Is this window visible to the user in the switcher?

is_hidden

Is this window hidden?

Windows are hidden when the ‘Show Desktop’ mode is activated.

is_focused

Is this window focused?

is_valid

Is this window object valid?

Invalid windows are caused by windows closing during the construction of this object instance.

monitor

Returns the monitor to which the windows belongs to

closed

Returns True if the window has been closed

close()

Close the window.

set_focus()