{"action":"closed","issue":{"url":"https://api.github.com/repos/marcusolsson/tui-go/issues/136","repository_url":"https://api.github.com/repos/marcusolsson/tui-go","labels_url":"https://api.github.com/repos/marcusolsson/tui-go/issues/136/labels{/name}","comments_url":"https://api.github.com/repos/marcusolsson/tui-go/issues/136/comments","events_url":"https://api.github.com/repos/marcusolsson/tui-go/issues/136/events","html_url":"https://github.com/marcusolsson/tui-go/issues/136","id":337319576,"node_id":"MDU6SXNzdWUzMzczMTk1NzY=","number":136,"title":"SetText doesn't work from a different func.","user":{"login":"undeadindustries","id":9536461,"node_id":"MDQ6VXNlcjk1MzY0NjE=","avatar_url":"https://avatars2.githubusercontent.com/u/9536461?v=4","gravatar_id":"","url":"https://api.github.com/users/undeadindustries","html_url":"https://github.com/undeadindustries","followers_url":"https://api.github.com/users/undeadindustries/followers","following_url":"https://api.github.com/users/undeadindustries/following{/other_user}","gists_url":"https://api.github.com/users/undeadindustries/gists{/gist_id}","starred_url":"https://api.github.com/users/undeadindustries/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/undeadindustries/subscriptions","organizations_url":"https://api.github.com/users/undeadindustries/orgs","repos_url":"https://api.github.com/users/undeadindustries/repos","events_url":"https://api.github.com/users/undeadindustries/events{/privacy}","received_events_url":"https://api.github.com/users/undeadindustries/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-07-01T20:29:30Z","updated_at":"2018-08-02T04:47:53Z","closed_at":"2018-08-02T04:47:53Z","author_association":"NONE","body":"For some reason, SetText on a Label does not work from different files, even if they are global vars in the same package. Something like:\r\n\r\nMain.go\r\npackage main\r\nMyLabel = tui.NewLabel(\"doe\")\r\nUi, err = tui.New(tui.NewVBox(MyLabel))\r\nif err := Ui.Run(); err != nil {\r\n\tpanic(err)\r\n}\r\nMyLabel.SetText(\"ray\")\r\nfoo()\r\n\r\nother.go\r\n\r\npackage main\r\nfoo() {\r\nMyLabel.SetText(\"me\")\r\n}\r\n\r\ngo run main.go other.go\r\n\r\nMyLabel is still \"ray\"\r\n\r\nI've made all my vars exportable. I'm not sure what I'm doing wrong?"}}
{"actor":{"display_login":"marcusolsson"}}