{"action":"created","comment":{"url":"https://api.github.com/repos/matplotlib/matplotlib/pulls/comments/28597817","id":28597817,"diff_hunk":"@@ -134,19 +137,22 @@ def OnInit(self):\n         plot_container.SetSizer(sizer)\n \n         # whiz button ------------------\n-\n         whiz_button = xrc.XRCCTRL(self.frame, \"whiz_button\")\n-        wx.EVT_BUTTON(whiz_button, whiz_button.GetId(),\n-                      self.plotpanel.OnWhiz)\n+        if 'phoenix' in wx.PlatformInfo:\n+            whiz_button.Bind(wx.EVT_BUTTON, self.plotpanel.OnWhiz)\n+        else:\n+            wx.EVT_BUTTON(whiz_button, whiz_button.GetId(),\n+                          self.plotpanel.OnWhiz)","path":"examples/user_interfaces/embedding_in_wx3.py","position":68,"original_position":68,"commit_id":"756bc6af34a2bf232e92f152e52290cd9f715f88","original_commit_id":"756bc6af34a2bf232e92f152e52290cd9f715f88","user":{"login":"wernerfb","id":454824,"avatar_url":"https://avatars.githubusercontent.com/u/454824?v=3","gravatar_id":"","url":"https://api.github.com/users/wernerfb","html_url":"https://github.com/wernerfb","followers_url":"https://api.github.com/users/wernerfb/followers","following_url":"https://api.github.com/users/wernerfb/following{/other_user}","gists_url":"https://api.github.com/users/wernerfb/gists{/gist_id}","starred_url":"https://api.github.com/users/wernerfb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wernerfb/subscriptions","organizations_url":"https://api.github.com/users/wernerfb/orgs","repos_url":"https://api.github.com/users/wernerfb/repos","events_url":"https://api.github.com/users/wernerfb/events{/privacy}","received_events_url":"https://api.github.com/users/wernerfb/received_events","type":"User","site_admin":false},"body":"I don't have anything older then 2.8.12.1 to test against, in that version Bind() is fine.  Currently mpl states that minimum is 2.8, do we change that?","created_at":"2015-04-17T14:22:30Z","updated_at":"2015-04-17T14:22:30Z","html_url":"https://github.com/matplotlib/matplotlib/pull/3421#discussion_r28597817","pull_request_url":"https://api.github.com/repos/matplotlib/matplotlib/pulls/3421","_links":{"self":{"href":"https://api.github.com/repos/matplotlib/matplotlib/pulls/comments/28597817"},"html":{"href":"https://github.com/matplotlib/matplotlib/pull/3421#discussion_r28597817"},"pull_request":{"href":"https://api.github.com/repos/matplotlib/matplotlib/pulls/3421"}}},"pull_request":{"url":"https://api.github.com/repos/matplotlib/matplotlib/pulls/3421","id":20384734,"html_url":"https://github.com/matplotlib/matplotlib/pull/3421","diff_url":"https://github.com/matplotlib/matplotlib/pull/3421.diff","patch_url":"https://github.com/matplotlib/matplotlib/pull/3421.patch","issue_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/3421","number":3421,"state":"open","locked":false,"title":"make wx backends compatible with wxPython-Phoenix","user":{"login":"wernerfb","id":454824,"avatar_url":"https://avatars.githubusercontent.com/u/454824?v=3","gravatar_id":"","url":"https://api.github.com/users/wernerfb","html_url":"https://github.com/wernerfb","followers_url":"https://api.github.com/users/wernerfb/followers","following_url":"https://api.github.com/users/wernerfb/following{/other_user}","gists_url":"https://api.github.com/users/wernerfb/gists{/gist_id}","starred_url":"https://api.github.com/users/wernerfb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wernerfb/subscriptions","organizations_url":"https://api.github.com/users/wernerfb/orgs","repos_url":"https://api.github.com/users/wernerfb/repos","events_url":"https://api.github.com/users/wernerfb/events{/privacy}","received_events_url":"https://api.github.com/users/wernerfb/received_events","type":"User","site_admin":false},"body":"This is based on the comments made to my previous PR for this.\r\n\r\nNote that wxPython Phoenix snapshots can now be installed with pip:\r\npip install -U --pre -f http://wxpython.org/Phoenix/snapshot-builds/ wxPython_Phoenix ","created_at":"2014-08-27T16:21:38Z","updated_at":"2015-04-17T14:22:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"57ee25fbd733184765526c28e438fee4076daafd","assignee":null,"milestone":{"url":"https://api.github.com/repos/matplotlib/matplotlib/milestones/18","html_url":"https://github.com/matplotlib/matplotlib/milestones/next%20point%20release","labels_url":"https://api.github.com/repos/matplotlib/matplotlib/milestones/18/labels","id":970105,"number":18,"title":"next point release","description":"Next minor release.","creator":{"login":"tacaswell","id":199813,"avatar_url":"https://avatars.githubusercontent.com/u/199813?v=3","gravatar_id":"","url":"https://api.github.com/users/tacaswell","html_url":"https://github.com/tacaswell","followers_url":"https://api.github.com/users/tacaswell/followers","following_url":"https://api.github.com/users/tacaswell/following{/other_user}","gists_url":"https://api.github.com/users/tacaswell/gists{/gist_id}","starred_url":"https://api.github.com/users/tacaswell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tacaswell/subscriptions","organizations_url":"https://api.github.com/users/tacaswell/orgs","repos_url":"https://api.github.com/users/tacaswell/repos","events_url":"https://api.github.com/users/tacaswell/events{/privacy}","received_events_url":"https://api.github.com/users/tacaswell/received_events","type":"User","site_admin":false},"open_issues":182,"closed_issues":108,"state":"open","created_at":"2015-02-07T21:22:30Z","updated_at":"2015-04-16T12:59:18Z","due_on":"2015-07-06T04:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/matplotlib/matplotlib/pulls/3421/commits","review_comments_url":"https://api.github.com/repos/matplotlib/matplotlib/pulls/3421/comments","review_comment_url":"https://api.github.com/repos/matplotlib/matplotlib/pulls/comments{/number}","comments_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/3421/comments","statuses_url":"https://api.github.com/repos/matplotlib/matplotlib/statuses/756bc6af34a2bf232e92f152e52290cd9f715f88","head":{"label":"wernerfb:wxPythonPhoenixAug2014","ref":"wxPythonPhoenixAug2014","sha":"756bc6af34a2bf232e92f152e52290cd9f715f88","user":{"login":"wernerfb","id":454824,"avatar_url":"https://avatars.githubusercontent.com/u/454824?v=3","gravatar_id":"","url":"https://api.github.com/users/wernerfb","html_url":"https://github.com/wernerfb","followers_url":"https://api.github.com/users/wernerfb/followers","following_url":"https://api.github.com/users/wernerfb/following{/other_user}","gists_url":"https://api.github.com/users/wernerfb/gists{/gist_id}","starred_url":"https://api.github.com/users/wernerfb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wernerfb/subscriptions","organizations_url":"https://api.github.com/users/wernerfb/orgs","repos_url":"https://api.github.com/users/wernerfb/repos","events_url":"https://api.github.com/users/wernerfb/events{/privacy}","received_events_url":"https://api.github.com/users/wernerfb/received_events","type":"User","site_admin":false},"repo":{"id":9837035,"name":"matplotlib","full_name":"wernerfb/matplotlib","owner":{"login":"wernerfb","id":454824,"avatar_url":"https://avatars.githubusercontent.com/u/454824?v=3","gravatar_id":"","url":"https://api.github.com/users/wernerfb","html_url":"https://github.com/wernerfb","followers_url":"https://api.github.com/users/wernerfb/followers","following_url":"https://api.github.com/users/wernerfb/following{/other_user}","gists_url":"https://api.github.com/users/wernerfb/gists{/gist_id}","starred_url":"https://api.github.com/users/wernerfb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wernerfb/subscriptions","organizations_url":"https://api.github.com/users/wernerfb/orgs","repos_url":"https://api.github.com/users/wernerfb/repos","events_url":"https://api.github.com/users/wernerfb/events{/privacy}","received_events_url":"https://api.github.com/users/wernerfb/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/wernerfb/matplotlib","description":"matplotlib: plotting with Python","fork":true,"url":"https://api.github.com/repos/wernerfb/matplotlib","forks_url":"https://api.github.com/repos/wernerfb/matplotlib/forks","keys_url":"https://api.github.com/repos/wernerfb/matplotlib/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wernerfb/matplotlib/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wernerfb/matplotlib/teams","hooks_url":"https://api.github.com/repos/wernerfb/matplotlib/hooks","issue_events_url":"https://api.github.com/repos/wernerfb/matplotlib/issues/events{/number}","events_url":"https://api.github.com/repos/wernerfb/matplotlib/events","assignees_url":"https://api.github.com/repos/wernerfb/matplotlib/assignees{/user}","branches_url":"https://api.github.com/repos/wernerfb/matplotlib/branches{/branch}","tags_url":"https://api.github.com/repos/wernerfb/matplotlib/tags","blobs_url":"https://api.github.com/repos/wernerfb/matplotlib/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wernerfb/matplotlib/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wernerfb/matplotlib/git/refs{/sha}","trees_url":"https://api.github.com/repos/wernerfb/matplotlib/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wernerfb/matplotlib/statuses/{sha}","languages_url":"https://api.github.com/repos/wernerfb/matplotlib/languages","stargazers_url":"https://api.github.com/repos/wernerfb/matplotlib/stargazers","contributors_url":"https://api.github.com/repos/wernerfb/matplotlib/contributors","subscribers_url":"https://api.github.com/repos/wernerfb/matplotlib/subscribers","subscription_url":"https://api.github.com/repos/wernerfb/matplotlib/subscription","commits_url":"https://api.github.com/repos/wernerfb/matplotlib/commits{/sha}","git_commits_url":"https://api.github.com/repos/wernerfb/matplotlib/git/commits{/sha}","comments_url":"https://api.github.com/repos/wernerfb/matplotlib/comments{/number}","issue_comment_url":"https://api.github.com/repos/wernerfb/matplotlib/issues/comments{/number}","contents_url":"https://api.github.com/repos/wernerfb/matplotlib/contents/{+path}","compare_url":"https://api.github.com/repos/wernerfb/matplotlib/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wernerfb/matplotlib/merges","archive_url":"https://api.github.com/repos/wernerfb/matplotlib/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wernerfb/matplotlib/downloads","issues_url":"https://api.github.com/repos/wernerfb/matplotlib/issues{/number}","pulls_url":"https://api.github.com/repos/wernerfb/matplotlib/pulls{/number}","milestones_url":"https://api.github.com/repos/wernerfb/matplotlib/milestones{/number}","notifications_url":"https://api.github.com/repos/wernerfb/matplotlib/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wernerfb/matplotlib/labels{/name}","releases_url":"https://api.github.com/repos/wernerfb/matplotlib/releases{/id}","created_at":"2013-05-03T14:00:42Z","updated_at":"2015-02-17T16:16:22Z","pushed_at":"2015-02-18T09:01:30Z","git_url":"git://github.com/wernerfb/matplotlib.git","ssh_url":"git@github.com:wernerfb/matplotlib.git","clone_url":"https://github.com/wernerfb/matplotlib.git","svn_url":"https://github.com/wernerfb/matplotlib","homepage":"http://matplotlib.org/","size":200633,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"matplotlib:master","ref":"master","sha":"30f9def2737e894b07a51c1ad61d4c8ce74e76a5","user":{"login":"matplotlib","id":215947,"avatar_url":"https://avatars.githubusercontent.com/u/215947?v=3","gravatar_id":"","url":"https://api.github.com/users/matplotlib","html_url":"https://github.com/matplotlib","followers_url":"https://api.github.com/users/matplotlib/followers","following_url":"https://api.github.com/users/matplotlib/following{/other_user}","gists_url":"https://api.github.com/users/matplotlib/gists{/gist_id}","starred_url":"https://api.github.com/users/matplotlib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matplotlib/subscriptions","organizations_url":"https://api.github.com/users/matplotlib/orgs","repos_url":"https://api.github.com/users/matplotlib/repos","events_url":"https://api.github.com/users/matplotlib/events{/privacy}","received_events_url":"https://api.github.com/users/matplotlib/received_events","type":"Organization","site_admin":false},"repo":{"id":1385122,"name":"matplotlib","full_name":"matplotlib/matplotlib","owner":{"login":"matplotlib","id":215947,"avatar_url":"https://avatars.githubusercontent.com/u/215947?v=3","gravatar_id":"","url":"https://api.github.com/users/matplotlib","html_url":"https://github.com/matplotlib","followers_url":"https://api.github.com/users/matplotlib/followers","following_url":"https://api.github.com/users/matplotlib/following{/other_user}","gists_url":"https://api.github.com/users/matplotlib/gists{/gist_id}","starred_url":"https://api.github.com/users/matplotlib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matplotlib/subscriptions","organizations_url":"https://api.github.com/users/matplotlib/orgs","repos_url":"https://api.github.com/users/matplotlib/repos","events_url":"https://api.github.com/users/matplotlib/events{/privacy}","received_events_url":"https://api.github.com/users/matplotlib/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/matplotlib/matplotlib","description":"matplotlib: plotting with Python","fork":false,"url":"https://api.github.com/repos/matplotlib/matplotlib","forks_url":"https://api.github.com/repos/matplotlib/matplotlib/forks","keys_url":"https://api.github.com/repos/matplotlib/matplotlib/keys{/key_id}","collaborators_url":"https://api.github.com/repos/matplotlib/matplotlib/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/matplotlib/matplotlib/teams","hooks_url":"https://api.github.com/repos/matplotlib/matplotlib/hooks","issue_events_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/events{/number}","events_url":"https://api.github.com/repos/matplotlib/matplotlib/events","assignees_url":"https://api.github.com/repos/matplotlib/matplotlib/assignees{/user}","branches_url":"https://api.github.com/repos/matplotlib/matplotlib/branches{/branch}","tags_url":"https://api.github.com/repos/matplotlib/matplotlib/tags","blobs_url":"https://api.github.com/repos/matplotlib/matplotlib/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/matplotlib/matplotlib/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/matplotlib/matplotlib/git/refs{/sha}","trees_url":"https://api.github.com/repos/matplotlib/matplotlib/git/trees{/sha}","statuses_url":"https://api.github.com/repos/matplotlib/matplotlib/statuses/{sha}","languages_url":"https://api.github.com/repos/matplotlib/matplotlib/languages","stargazers_url":"https://api.github.com/repos/matplotlib/matplotlib/stargazers","contributors_url":"https://api.github.com/repos/matplotlib/matplotlib/contributors","subscribers_url":"https://api.github.com/repos/matplotlib/matplotlib/subscribers","subscription_url":"https://api.github.com/repos/matplotlib/matplotlib/subscription","commits_url":"https://api.github.com/repos/matplotlib/matplotlib/commits{/sha}","git_commits_url":"https://api.github.com/repos/matplotlib/matplotlib/git/commits{/sha}","comments_url":"https://api.github.com/repos/matplotlib/matplotlib/comments{/number}","issue_comment_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/comments{/number}","contents_url":"https://api.github.com/repos/matplotlib/matplotlib/contents/{+path}","compare_url":"https://api.github.com/repos/matplotlib/matplotlib/compare/{base}...{head}","merges_url":"https://api.github.com/repos/matplotlib/matplotlib/merges","archive_url":"https://api.github.com/repos/matplotlib/matplotlib/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/matplotlib/matplotlib/downloads","issues_url":"https://api.github.com/repos/matplotlib/matplotlib/issues{/number}","pulls_url":"https://api.github.com/repos/matplotlib/matplotlib/pulls{/number}","milestones_url":"https://api.github.com/repos/matplotlib/matplotlib/milestones{/number}","notifications_url":"https://api.github.com/repos/matplotlib/matplotlib/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/matplotlib/matplotlib/labels{/name}","releases_url":"https://api.github.com/repos/matplotlib/matplotlib/releases{/id}","created_at":"2011-02-19T03:17:12Z","updated_at":"2015-04-17T13:33:04Z","pushed_at":"2015-04-17T13:33:03Z","git_url":"git://github.com/matplotlib/matplotlib.git","ssh_url":"git@github.com:matplotlib/matplotlib.git","clone_url":"https://github.com/matplotlib/matplotlib.git","svn_url":"https://github.com/matplotlib/matplotlib","homepage":"http://matplotlib.org/","size":266574,"stargazers_count":2439,"watchers_count":2439,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1242,"mirror_url":null,"open_issues_count":502,"forks":1242,"open_issues":502,"watchers":2439,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/matplotlib/matplotlib/pulls/3421"},"html":{"href":"https://github.com/matplotlib/matplotlib/pull/3421"},"issue":{"href":"https://api.github.com/repos/matplotlib/matplotlib/issues/3421"},"comments":{"href":"https://api.github.com/repos/matplotlib/matplotlib/issues/3421/comments"},"review_comments":{"href":"https://api.github.com/repos/matplotlib/matplotlib/pulls/3421/comments"},"review_comment":{"href":"https://api.github.com/repos/matplotlib/matplotlib/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/matplotlib/matplotlib/pulls/3421/commits"},"statuses":{"href":"https://api.github.com/repos/matplotlib/matplotlib/statuses/756bc6af34a2bf232e92f152e52290cd9f715f88"}}}}