You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 5, 2022. It is now read-only.
Your problem here is with the goroutines calling SetText. GXUI does not support calls directly from goroutines other than the goroutine that executes the gl.StartDriver callback. You can however use the Driver.Call method to execute your UI code on the correct goroutine:
gofunc() {
for {
<-changeFont1Chandriver.Call(func() {
label1.SetText(cs[rand.Intn(len(cs))])
})
}
}()
The text was updated successfully, but these errors were encountered: