AFXProgressBar

This class contains a progress bar, which can present work-in-progress in a number of different styles.


AFXProgressBar(p, tgt=None, sel=0, opts=FRAME_SUNKEN| FRAME_THICK, x=0, y=0, w=0, h=0, pl=DEFAULT_PAD, pr=DEFAULT_PAD, pt=DEFAULT_PAD, pb=DEFAULT_PAD)

Constructor.

ArgumentTypeDefaultDescription
pFXComposite Parent widget.
tgtFXObjectNoneMessage target.
selInt0Message ID.
optsIntFRAME_SUNKEN| FRAME_THICKOptions and hints.
xInt0X coordinate of origin.
yInt0Y coordinate of origin.
wInt0Width of the widget.
hInt0Height of the widget.
plIntDEFAULT_PADLeft padding (margin).
prIntDEFAULT_PADRight padding (margin).
ptIntDEFAULT_PADTop padding (margin).
pbIntDEFAULT_PADBottom padding (margin).


create()

Creates the progress bar.

Reimplemented from FXProgressBar.


getBarStyle()

Returns the progress bar style.

Reimplemented from FXProgressBar.


getDefaultHeight()

Returns the default height.

Reimplemented from FXProgressBar.


getDefaultWidth()

Returns the default width.

Reimplemented from FXProgressBar.


getNumCursorBoxes()

Returns the number of cursor boxes displayed.


getProgress()

Returns the current progress amount.

Reimplemented from FXProgressBar.


getTotal()

Returns the total progress amount.

Reimplemented from FXProgressBar.


hide()

Hides the progress bar.

Reimplemented from FXWindow.


hideNumber()

Hides the progress bar iteration or percentage text.

Reimplemented from FXProgressBar.


setBarStyle(style)

Sets the progress bar style.

ArgumentTypeDefaultDescription
styleInt Style flag.


setNumCursorBoxes(nb)

Sets the number of cursor boxes to display.

ArgumentTypeDefaultDescription
nbInt Number of boxes.


setProgress(value)

Sets the current progress amount that is used by a progress bar in either iteration or percentage mode; the progress amount is ingored by a progress bar in scanner mode.

Reimplemented from FXProgressBar.

ArgumentTypeDefaultDescription
valueInt  


setTotal(value)

Sets the total progress amount that is used by a progress bar in either iteration or percentage mode; the progress amount is ingored by a progress bar in scanner mode.

Reimplemented from FXProgressBar.

ArgumentTypeDefaultDescription
valueInt  


show()

Shows the progress bar.

Reimplemented from FXWindow.


showNumber(style=AFXPROGRESSBAR_PERCENTAGE)

Shows the progress iteration or percentage text.

ArgumentTypeDefaultDescription
styleIntAFXPROGRESSBAR_PERCENTAGEStyle flag.


Class flags

Message ID's.

ID_TIMER

ID for timer.


Global flags

Flags for progress bar styles.

AFXPROGRESSBAR_PERCENTAGE

Percentage complete mode.

AFXPROGRESSBAR_HORIZONTAL

Horizontal display.

AFXPROGRESSBAR_VERTICAL

Vertical display.

AFXPROGRESSBAR_SCANNER

Scanner mode.

AFXPROGRESSBAR_ITERATOR

Iterator mode.