Gtk.CellRendererProgress¶
- Subclasses:
None
Methods¶
- Inherited:
Gtk.CellRenderer (27), GObject.Object (37), Gtk.Orientable (2)
- Structs:
class |
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/en |
|||
r/w/en |
|||
r/w |
|||
r/w |
|||
r/w |
|||
r/w/en |
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class Gtk.CellRendererProgress(**kwargs)¶
- Bases:
- Abstract:
No
Renders numbers as progress bars
GtkCellRendererProgress
renders a numeric value as a progress par in a cell. Additionally, it can display a text on top of the progress bar.Deprecated since version 4.10: List views use widgets to display their contents. You should use [class`Gtk`.ProgressBar] instead
Property Details¶
- Gtk.CellRendererProgress.props.inverted¶
- Name:
inverted
- Type:
- Default Value:
- Flags:
- Gtk.CellRendererProgress.props.pulse¶
- Name:
pulse
- Type:
- Default Value:
-1
- Flags:
Setting this to a non-negative value causes the cell renderer to enter “activity mode”, where a block bounces back and forth to indicate that some progress is made, without specifying exactly how much.
Each increment of the property causes the block to move by a little bit.
To indicate that the activity has not started yet, set the property to zero. To indicate completion, set the property to
GObject.G_MAXINT
.
- Gtk.CellRendererProgress.props.text¶
-
The “text” property determines the label which will be drawn over the progress bar. Setting this property to
None
causes the default label to be displayed. Setting this property to an empty string causes no label to be displayed.
- Gtk.CellRendererProgress.props.text_xalign¶
-
The “text-xalign” property controls the horizontal alignment of the text in the progress bar. Valid values range from 0 (left) to 1 (right). Reserved for RTL layouts.
- Gtk.CellRendererProgress.props.text_yalign¶
-
The “text-yalign” property controls the vertical alignment of the text in the progress bar. Valid values range from 0 (top) to 1 (bottom).
- Gtk.CellRendererProgress.props.value¶
- Name:
value
- Type:
- Default Value:
0
- Flags:
The “value” property determines the percentage to which the progress bar will be “filled in”.