zenity/msg_test.go
2020-01-10 12:35:41 +00:00

31 lines
643 B
Go

package zenity_test
import "github.com/ncruces/zenity"
func ExampleError() {
zenity.Error("An error has occured.",
zenity.Title("Error"),
zenity.Icon(zenity.ErrorIcon))
// Output:
}
func ExampleInfo() {
zenity.Info("All updates are complete.",
zenity.Title("Information"),
zenity.Icon(zenity.InfoIcon))
// Output:
}
func ExampleWarning() {
zenity.Warning("Are you sure you want to proceed?",
zenity.Title("Warning"),
zenity.Icon(zenity.WarningIcon))
// Output:
}
func ExampleQuestion() {
zenity.Question("Are you sure you want to proceed?",
zenity.Title("Question"),
zenity.Icon(zenity.QuestionIcon))
// Output:
}