ooodev.adapter.awt.progress_bar_partial module

class ooodev.adapter.awt.progress_bar_partial.ProgressBarPartial(component, interface=com.sun.star.awt.XProgressBar)[source]

Bases: object

Partial class for XProgressBar.

Parameters:
  • component (XProgressBar) –

  • interface (UnoInterface | None) –

__init__(component, interface=com.sun.star.awt.XProgressBar)[source]

Constructor

Parameters:
  • component (XProgressBar) – UNO Component that implements com.sun.star.awt.XProgressBar interface.

  • interface (UnoInterface, optional) – The interface to be validated. Defaults to XProgressBar.

Return type:

None

get_value()[source]

Gets the current progress value of the progress bar.

Return type:

int

set_background_color(color)[source]

Sets the background color of the control.

Parameters:
  • ~ooodev.utils.color.Color – Color

  • color (Color) –

Return type:

None

set_foreground_color(color)[source]

Sets the foreground color of the control.

Parameters:
  • ~ooodev.utils.color.Color – Color

  • color (Color) –

Return type:

None

set_range(min_val, max_val)[source]

Sets the minimum and the maximum progress value of the progress bar.

If the minimum value is greater than the maximum value, the method exchanges the values automatically.

Return type:

None

Parameters:
  • min_val (int) –

  • max_val (int) –

set_value(value)[source]

Sets the progress value of the progress bar.

Return type:

None

Parameters:

value (int) –