当我在没有原始GtkEntry的情况下单击任何地方时,如何获取GtkEntry的文本以及如何执行其他操作

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