progress_bar

0th

Percentile

Progress bar using a gtkdialog, the progress bar is assigned in envir_stacomi This progress bar has a button to close.

Progress bar using a gtkdialog, the progress bar is assigned in envir_stacomi This progress bar has a button to close.

Usage
progress_bar(title, progress_text, width = 400, height = 50, pulse = TRUE)
Arguments
title

The title of the bar

progress_text

The text to display for progression

width

Width of the progress bar

height

Height of the progress bar

pulse

Do you want the widget to pulse

Value

nothing

Note

The name of the progress bar is progres, it will be assigned in envir_stacomi, it contains a progress bar widget named progress bar, also assigned in envir_stacomi See example for use.

Aliases
  • progress_bar
Examples

progress_bar(title="Trial",progress_text="progress text")
fraction_progressed=seq(0,1,length.out=50)
 progress_bar<-get("progress_bar",envir_stacomi)
for(i in fraction_progressed){ 
     Sys.sleep(0.1)
   progress_bar$setText(sprintf("%d%% progression",round(100*i)))
    progress_bar$setFraction(i)
}
dispose(progres)

Documentation reproduced from package stacomiR, version 0.5.3, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.