2014-02-17 01:34:58 -06:00
|
|
|
// 7 february 2014
|
2014-02-19 10:41:10 -06:00
|
|
|
package ui
|
2014-02-17 01:34:58 -06:00
|
|
|
|
|
|
|
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...))
|
|
|
|
}
|