Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
30 lines (24 sloc) 846 Bytes
package dialog
import (
// ProgressDialog is a simple dialog window that displays text and a progress bar.
type ProgressDialog struct {
bar *widget.ProgressBar
// SetValue updates the value of the progress bar - this should be between 0.0 and 1.0.
func (p *ProgressDialog) SetValue(v float64) {
// NewProgress creates a progress dialog and returns the handle.
// Using the returned type you should call Show() and then set its value through SetValue().
func NewProgress(title, message string, parent fyne.Window) *ProgressDialog {
d := newDialog(title, message, theme.InfoIcon(), nil /*cancel?*/, parent)
bar := widget.NewProgressBar()
bar.Resize(fyne.NewSize(200, bar.MinSize().Height))
return &ProgressDialog{d, bar}
You can’t perform that action at this time.