{"action":"closed","issue":{"url":"https://api.github.com/repos/cathaynova/python-learning-wxpython/issues/1","repository_url":"https://api.github.com/repos/cathaynova/python-learning-wxpython","labels_url":"https://api.github.com/repos/cathaynova/python-learning-wxpython/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/cathaynova/python-learning-wxpython/issues/1/comments","events_url":"https://api.github.com/repos/cathaynova/python-learning-wxpython/issues/1/events","html_url":"https://github.com/cathaynova/python-learning-wxpython/issues/1","id":171493104,"number":1,"title":"创建一个显示鼠标移动坐标位置信息的wxpython程序","user":{"login":"cathaynova","id":20699801,"avatar_url":"https://avatars.githubusercontent.com/u/20699801?v=3","gravatar_id":"","url":"https://api.github.com/users/cathaynova","html_url":"https://github.com/cathaynova","followers_url":"https://api.github.com/users/cathaynova/followers","following_url":"https://api.github.com/users/cathaynova/following{/other_user}","gists_url":"https://api.github.com/users/cathaynova/gists{/gist_id}","starred_url":"https://api.github.com/users/cathaynova/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cathaynova/subscriptions","organizations_url":"https://api.github.com/users/cathaynova/orgs","repos_url":"https://api.github.com/users/cathaynova/repos","events_url":"https://api.github.com/users/cathaynova/events{/privacy}","received_events_url":"https://api.github.com/users/cathaynova/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-16T19:06:07Z","updated_at":"2016-08-16T19:11:50Z","closed_at":"2016-08-16T19:11:50Z","body":"import wx\r\n\r\nclass MyFrame(wx.Frame):\r\n    def __init__(self):\r\n        wx.Frame.__init__(self, None, -1, 'My Frame', size=(300, 300))\r\n        self.panel = wx.Panel(self)\r\n        self.panel.Bind(wx.EVT_MOTION, self.OnMove)\r\n        wx.StaticText(self.panel, -1, \"Pos:\", pos=(70, 120))\r\n        self.posCtrl = wx.TextCtrl(self.panel, -1, \"\", pos=(110, 120))\r\n\r\n    def OnMove(self, event):\r\n        pos = event.GetPosition()\r\n        self.posCtrl.SetValue(\"%s, %s\" % (pos.x, pos.y))\r\n\r\nif __name__ =='__main__':\r\n    app = wx.App()\r\n    MyFrame().Show()\r\n    app.MainLoop()"}}
{"actor":{"display_login":"cathaynova"}}