-
Notifications
You must be signed in to change notification settings - Fork 0
/
widget.go
41 lines (30 loc) · 856 Bytes
/
widget.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
package gox
import (
"time"
"github.com/ncruces/zenity"
)
type Widget struct{}
func (wi *Widget) Entry(text string) (string, error) {
return zenity.Entry(text)
}
func (wi *Widget) Progress() (zenity.ProgressDialog, error) {
return zenity.Progress()
}
func (wi *Widget) ListMultiple(text string, list []string) ([]string, error) {
return zenity.ListMultiple(text, list)
}
func (wi *Widget) List(text string, list []string) (string, error) {
return zenity.List(text, list)
}
func (wi *Widget) ListMultipleItems(text string) ([]string, error) {
return zenity.ListMultipleItems(text)
}
func (wi *Widget) Password() (string, string, error) {
return zenity.Password()
}
func (wi *Widget) Question(text string) error {
return zenity.Question(text)
}
func (wi *Widget) Calendar(text string) (time.Time, error) {
return zenity.Calendar(text)
}