When I click labelEntity, the focus_out_event event doesn't execute. I want to get the text and do some things (here I'm only printing it), how do I do that?
box,_ := gtk.BoxNew(gtk.ORIENTATION_HORIZONTAL,0)
labelEntity,_ := gtk.EntryNew()
labelEntity.SetText(label)
labelEntity.SetVisibility(true)
box.Add(labelEntity)
box.ShowAll()
labelEntity.Connect("focus_out_event", func() {
newLabel,_ := labelEntity.GetText()
fmt.Println(newLabel)
})
I want the callback executing