Skip to content

TitleBar

flaui.core.automation_elements.TitleBar

Bases: AutomationElement

Class to interact with a titlebar element.

close_button()

Gets the close button element.

Returns:

Type Description
Button

Close button

Source code in flaui/core/automation_elements.py
@handle_csharp_exceptions
def close_button(self) -> Button:
    """Gets the close button element.

    :return: Close button
    """
    return Button(raw_element=self.raw_element.CloseButton())

maximize_button()

Gets the maximize button element.

Returns:

Type Description
Button

Maximize button

Source code in flaui/core/automation_elements.py
@handle_csharp_exceptions
def maximize_button(self) -> Button:
    """Gets the maximize button element.

    :return: Maximize button
    """
    return Button(raw_element=self.raw_element.MaximizeButton())

minimize_button()

Gets the minimize button element.

Returns:

Type Description
Button

Minimize button

Source code in flaui/core/automation_elements.py
@handle_csharp_exceptions
def minimize_button(self) -> Button:
    """Gets the minimize button element.

    :return: Minimize button
    """
    return Button(raw_element=self.raw_element.MinimizeButton())

restore_button()

Gets the restore button element.

Returns:

Type Description
Button

Restore button

Source code in flaui/core/automation_elements.py
@handle_csharp_exceptions
def restore_button(self) -> Button:
    """Gets the restore button element.

    :return: Restore button
    """
    return Button(raw_element=self.raw_element.RestoreButton())