ProgressBar (hwx.gui)#

class ProgressBar(name='', parent=None, totalSteps=None, **kwds)#

Bases: Widget

A Widget that shows the running status of a process.

Attribute Table#

Name

Type

centerIndicator

property

percentageVisible

property

progress

property

totalSteps

property

Method Table#

Name

Description

reset (self)

Reset the ProgressBar.

Example

from hwx import gui

# --------------------------------------------------------------------------

# Creating a ProgressBar object.
p1 = gui.ProgressBar()

# we can also set the values for ProgressBar.
p1.progress = 50

# Creating Dialog
dialog = gui.Dialog(caption="ProgressBar", children=p1, height=145, width=200)

show(dialog)
property totalSteps#

Total number of steps in progress bar.

property progress#

Current progress of progress bar.

property centerIndicator#

Center Indicator.

property percentageVisible#

Show/Hide percentage progress

reset()#

Reset the ProgressBar.