sugar3.graphics.progressicon module

class sugar3.graphics.progressicon.ProgressIcon(icon_name, pixel_size, stroke_color, fill_color, direction='vertical')

Bases: gi.repository.Gtk.DrawingArea

Display the progress filling the icon.

This class is compatible with the sugar3.graphics.icon.Icon class.

Call update(progress) with the new progress to update the icon.

The direction defaults to ‘vertical’, in which case the icon is filled from bottom to top. If direction is set to ‘horizontal’, it will be filled from right to left or from left to right, depending on the system’s language RTL setting.

do_get_preferred_height()
do_get_preferred_width()
update(progress)

Previous topic

sugar3.graphics.panel module

Next topic

sugar3.graphics.radiopalette module

This Page