parent
df97de0eb4
commit
a32edd610a
|
@ -45,13 +45,13 @@ func doAction(a widget.Action) {
|
|||
|
||||
switch a.ActionType {
|
||||
case widget.Show:
|
||||
n.State.Visable = true
|
||||
n.State.Hidden = true
|
||||
case widget.Hide:
|
||||
n.State.Visable = false
|
||||
n.State.Hidden = false
|
||||
case widget.Enable:
|
||||
n.State.Visable = true
|
||||
n.State.Enable = true
|
||||
case widget.Disable:
|
||||
n.State.Visable = false
|
||||
n.State.Enable = false
|
||||
case widget.Get:
|
||||
log.Warn("value =", n.State.Value)
|
||||
case widget.GetText:
|
||||
|
|
4
args.go
4
args.go
|
@ -21,10 +21,10 @@ func init() {
|
|||
short := "nocui"
|
||||
|
||||
NOW = log.NewFlag("NOW", true, full, short, "temp debugging stuff")
|
||||
INFO = log.NewFlag("INFO", false, full, short, "normal debugging stuff")
|
||||
INFO = log.NewFlag("INFO", true, full, short, "normal debugging stuff")
|
||||
|
||||
WARN = log.NewFlag("WARN", true, full, short, "bad things")
|
||||
SPEW = log.NewFlag("SPEW", false, full, short, "spew stuff")
|
||||
|
||||
ERROR = log.NewFlag("ERROR", false, full, short, "toolkit errors")
|
||||
ERROR = log.NewFlag("ERROR", true, full, short, "toolkit errors")
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue