blob: cd8e9c8e4c59054052683118fa6662fa6425f517 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
package main
import (
"git.wit.org/wit/gui/toolkit"
)
func (t *andlabsT) doUserEvent() {
if (callback == nil) {
log(debugError, "doUserEvent() callback == nil", t.wId)
return
}
var a toolkit.Action
a.WidgetId = t.wId
a.Name = t.Name
a.S = t.s
a.I = t.i
a.B = t.b
a.ActionType = toolkit.User
log(logInfo, "doUserEvent() START: send a user event to the callback channel")
callback <- a
log(logInfo, "doUserEvent() END: sent a user event to the callback channel")
return
}
|