Back

ShowProgressBar

JS Py
Hello World

Shows a dialog with a bar indicating the current progress of a certain thing.

app.ShowProgressBar( title, percent?, options? )

See Also: UpdateProgressBar, HideProgressBar

Example - Progress Bar

function OnStart()
{
    app.ShowProgressBar( "Loading..." );

    for( prog = 0; prog < 100; prog++ )
        app.UpdateProgressBar( prog );

    app.HideProgressBar();

}
from native import app

def OnStart():
    app.ShowProgressBar( "Loading..." )

    for prog in range(100):
        app.UpdateProgressBar( prog )

    app.HideProgressBar()
    Copy     Copy All       Run      
String
Number: percent
String: “Light”