dialog

package
v0.0.0-...-3a64f8a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 26, 2016 License: MIT Imports: 7 Imported by: 0

README

go-dialog

go-dialog is a Go wrapper for the dialog utility originally written by Savio Lam, and later rewritten by Thomas E. Dickey.

Documentation

Index

Constants

View Source
const (
	CONSOLE = "dialog"
	KDE     = "kdialog"
	GTK     = "gtkdialog"
	X       = "Xdialog"
	AUTO    = "auto"
)
View Source
const (
	DIALOG_ERR_CANCEL = "exit status 1"
	DIALOG_ERR_HELP   = "exit status 2"
	DIALOG_ERR_EXTRA  = "exit status 3"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Dialog

type Dialog struct {
	// contains filtered or unexported fields
}

func New

func New(environment string, parentId int) *Dialog

func (*Dialog) Calendar

func (d *Dialog) Calendar(date time.Time) (string, error)

func (*Dialog) Checklist

func (d *Dialog) Checklist(listHeight int, tagItemStatus ...string) ([]string, error)

func (*Dialog) Combobox

func (d *Dialog) Combobox(item ...string) (string, error)

func (*Dialog) Dselect

func (d *Dialog) Dselect(dirpath string) (string, error)

func (*Dialog) Fselect

func (d *Dialog) Fselect(filepath string) (string, error)

func (*Dialog) Getcolor

func (d *Dialog) Getcolor() string

func (*Dialog) Geticon

func (d *Dialog) Geticon() string

func (*Dialog) HelpButton

func (d *Dialog) HelpButton(truefalse bool)

func (*Dialog) Infobox

func (d *Dialog) Infobox(text string)

func (*Dialog) Inputbox

func (d *Dialog) Inputbox(value string) (string, error)

func (*Dialog) Inputmenu

func (d *Dialog) Inputmenu(menuHeight int, tagItem ...string) ([]string, error)

func (*Dialog) Menu

func (d *Dialog) Menu(menuHeight int, tagItem ...string) (string, error)

func (*Dialog) Mixedform

func (d *Dialog) Mixedform(title string, insecure bool, tagItemStatus ...string) ([]string, error)

func (*Dialog) Msgbox

func (d *Dialog) Msgbox(text string)

func (*Dialog) Passivepopup

func (d *Dialog) Passivepopup(text string, timeout int)

func (*Dialog) Passwordbox

func (d *Dialog) Passwordbox(insecure bool) (string, error)

func (*Dialog) Pause

func (d *Dialog) Pause(seconds int)

func (*Dialog) Progressbar

func (d *Dialog) Progressbar() *progress

func (*Dialog) Radiolist

func (d *Dialog) Radiolist(listHeight int, tagItemStatus ...string) (string, error)

func (*Dialog) SetBackTitle

func (d *Dialog) SetBackTitle(backtitle string)

func (*Dialog) SetCancelLabel

func (d *Dialog) SetCancelLabel(label string)

func (*Dialog) SetExtraLabel

func (d *Dialog) SetExtraLabel(label string)

func (*Dialog) SetHelpLabel

func (d *Dialog) SetHelpLabel(label string)

func (*Dialog) SetLabel

func (d *Dialog) SetLabel(label string)

func (*Dialog) SetOkLabel

func (d *Dialog) SetOkLabel(label string)

func (*Dialog) SetSize

func (d *Dialog) SetSize(height int, width int)

func (*Dialog) SetTitle

func (d *Dialog) SetTitle(title string)

func (*Dialog) Shadow

func (d *Dialog) Shadow(truefalse bool)

func (*Dialog) Slider

func (d *Dialog) Slider(min int, max int, step int) (int, error)

func (*Dialog) Textbox

func (d *Dialog) Textbox(filepath string) error

func (*Dialog) Timebox

func (d *Dialog) Timebox(date time.Time) (string, error)

func (*Dialog) Yesno

func (d *Dialog) Yesno() bool

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL