# Class GTK2.ProgressBar

Inheritance graph

Description

  A simple progress bar. Useful when you are doing things that take a long time. Try to always have an 'abort' button whenever it makes sence. `GTK2.ProgressBar()->set_fraction(0.1)`

  `GTK2.ProgressBar()->set_property("show_text", 1)->set_fraction(0.3)`

  `GTK2.ProgressBar()->set_fraction(0.6)`

  `GTK2.ProgressBar()->set_fraction(1.0)`

  Properties: int discrete-blocks int ellipsize PANGO_ELLIPSIZE_END, PANGO_ELLIPSIZE_MIDDLE, PANGO_ELLIPSIZE_NONE and PANGO_ELLIPSIZE_START float fraction int orientation PROGRESS_BOTTOM_TO_TOP, PROGRESS_CONTINUOUS, PROGRESS_DISCRETE, PROGRESS_LEFT_TO_RIGHT, PROGRESS_RIGHT_TO_LEFT and PROGRESS_TOP_TO_BOTTOM float pulse-step string text

Inherit Progress

  inherit GTK2.Progress : Progress

Method create

  `GTK2.ProgressBar GTK2.ProgressBar(mapping|void props)`

Description

  Create a new progress bar. The default values are: Min 0.0, max 1.0, current 0.0