diff options
| author | Pietro Gagliardi <[email protected]> | 2014-02-17 02:34:58 -0500 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-02-17 02:34:58 -0500 |
| commit | 316e5e9db4678d6b3fc545db6e8c54e23d6585e4 (patch) | |
| tree | 179a5bfe8a00e001b82aea29f6fda370c873099f /dialog.go | |
| parent | 56923d0bdaf3b45e7000b245ff9a5b6138210c97 (diff) | |
Split out the dialog functions into portable and non-portable code to keep the package documentation in the portable code only.
Diffstat (limited to 'dialog.go')
| -rw-r--r-- | dialog.go | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/dialog.go b/dialog.go new file mode 100644 index 0000000..d152e78 --- /dev/null +++ b/dialog.go @@ -0,0 +1,17 @@ +// 7 february 2014 +package main + +import ( + "fmt" +) + + +// MsgBox displays an informational message box to the user with just an OK button. +func MsgBox(title string, textfmt string, args ...interface{}) { + msgBox(title, fmt.Sprintf(textfmt, args...)) +} + +// MsgBoxError displays a message box to the user with just an OK button and an icon indicating an error. +func MsgBoxError(title string, textfmt string, args ...interface{}) { + msgBoxError(title, fmt.Sprintf(textfmt, args...)) +} |
