{"action":"created","comment":{"url":"https://api.github.com/repos/biolab/orange3/pulls/comments/56741085","id":56741085,"diff_hunk":"@@ -251,22 +255,27 @@ def createPixmapWidget(self, parent, iconName):\n         self.layout().addWidget(splitter)\n \n         if self.want_control_area:\n-            self.controlArea = gui.widgetBox(splitter,\n-                                             orientation=\"vertical\",\n-                                             margin=0)\n+            left_side = gui.vBox(splitter, spacing=0)\n             splitter.setSizes([1])  # Results in smallest size allowed by policy\n \n-            if self.graph_name is not None or hasattr(self, \"send_report\"):\n-                leftSide = self.controlArea\n-                self.controlArea = gui.widgetBox(leftSide, margin=0)\n-            if self.graph_name is not None:\n-                self.graphButton = gui.button(leftSide, None, \"&Save Graph\")\n-                self.graphButton.clicked.connect(self.save_graph)\n-                self.graphButton.setAutoDefault(0)\n-            if hasattr(self, \"send_report\"):\n-                self.report_button = gui.button(leftSide, None, \"&Report\",\n-                                                callback=self.show_report)\n-                self.report_button.setAutoDefault(0)\n+            if self.want_standard_buttons_box:","path":"Orange/widgets/widget.py","position":32,"original_position":32,"commit_id":"4a8de1e323ca38a30b8ebdb98284a535c12852b1","original_commit_id":"e984ff2055acf899bfae886d961be1d8ba7f59d8","user":{"login":"kernc","id":684364,"avatar_url":"https://avatars.githubusercontent.com/u/684364?v=3","gravatar_id":"","url":"https://api.github.com/users/kernc","html_url":"https://github.com/kernc","followers_url":"https://api.github.com/users/kernc/followers","following_url":"https://api.github.com/users/kernc/following{/other_user}","gists_url":"https://api.github.com/users/kernc/gists{/gist_id}","starred_url":"https://api.github.com/users/kernc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kernc/subscriptions","organizations_url":"https://api.github.com/users/kernc/orgs","repos_url":"https://api.github.com/users/kernc/repos","events_url":"https://api.github.com/users/kernc/events{/privacy}","received_events_url":"https://api.github.com/users/kernc/received_events","type":"User","site_admin":false},"body":"I think I'd have a similar failsafe above this line:\r\n```py\r\nif not self.want_standard_buttons_box:\r\n    if self.graph_name is not None or hasattr(self, 'send_report'):\r\n        self.want_standard_buttons_box = \\\r\n            self.__class__.want_standard_buttons_box\r\n```","created_at":"2016-03-19T01:24:21Z","updated_at":"2016-03-19T01:24:21Z","html_url":"https://github.com/biolab/orange3/pull/1132#discussion_r56741085","pull_request_url":"https://api.github.com/repos/biolab/orange3/pulls/1132","_links":{"self":{"href":"https://api.github.com/repos/biolab/orange3/pulls/comments/56741085"},"html":{"href":"https://github.com/biolab/orange3/pull/1132#discussion_r56741085"},"pull_request":{"href":"https://api.github.com/repos/biolab/orange3/pulls/1132"}}},"pull_request":{"url":"https://api.github.com/repos/biolab/orange3/pulls/1132","id":63443623,"html_url":"https://github.com/biolab/orange3/pull/1132","diff_url":"https://github.com/biolab/orange3/pull/1132.diff","patch_url":"https://github.com/biolab/orange3/pull/1132.patch","issue_url":"https://api.github.com/repos/biolab/orange3/issues/1132","number":1132,"state":"open","locked":false,"title":"[RFC] Standard buttons box in OWWidget","user":{"login":"janezd","id":2387315,"avatar_url":"https://avatars.githubusercontent.com/u/2387315?v=3","gravatar_id":"","url":"https://api.github.com/users/janezd","html_url":"https://github.com/janezd","followers_url":"https://api.github.com/users/janezd/followers","following_url":"https://api.github.com/users/janezd/following{/other_user}","gists_url":"https://api.github.com/users/janezd/gists{/gist_id}","starred_url":"https://api.github.com/users/janezd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/janezd/subscriptions","organizations_url":"https://api.github.com/users/janezd/orgs","repos_url":"https://api.github.com/users/janezd/repos","events_url":"https://api.github.com/users/janezd/events{/privacy}","received_events_url":"https://api.github.com/users/janezd/received_events","type":"User","site_admin":false},"body":"@kernc, something like this?\r\n\r\nI'm not sure about adding declarations for apply buttons. They may have different names, boxes, auto-commits, checkboxes for it, labels, different layouts. They are so diverse that any general solution will be either too complex or seldom used.","created_at":"2016-03-18T22:15:41Z","updated_at":"2016-03-19T01:24:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f2660dfb40de8b443fd986af5b344b1ac8605115","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/biolab/orange3/pulls/1132/commits","review_comments_url":"https://api.github.com/repos/biolab/orange3/pulls/1132/comments","review_comment_url":"https://api.github.com/repos/biolab/orange3/pulls/comments{/number}","comments_url":"https://api.github.com/repos/biolab/orange3/issues/1132/comments","statuses_url":"https://api.github.com/repos/biolab/orange3/statuses/4a8de1e323ca38a30b8ebdb98284a535c12852b1","head":{"label":"janezd:standard-buttons-box","ref":"standard-buttons-box","sha":"4a8de1e323ca38a30b8ebdb98284a535c12852b1","user":{"login":"janezd","id":2387315,"avatar_url":"https://avatars.githubusercontent.com/u/2387315?v=3","gravatar_id":"","url":"https://api.github.com/users/janezd","html_url":"https://github.com/janezd","followers_url":"https://api.github.com/users/janezd/followers","following_url":"https://api.github.com/users/janezd/following{/other_user}","gists_url":"https://api.github.com/users/janezd/gists{/gist_id}","starred_url":"https://api.github.com/users/janezd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/janezd/subscriptions","organizations_url":"https://api.github.com/users/janezd/orgs","repos_url":"https://api.github.com/users/janezd/repos","events_url":"https://api.github.com/users/janezd/events{/privacy}","received_events_url":"https://api.github.com/users/janezd/received_events","type":"User","site_admin":false},"repo":{"id":22688172,"name":"orange3","full_name":"janezd/orange3","owner":{"login":"janezd","id":2387315,"avatar_url":"https://avatars.githubusercontent.com/u/2387315?v=3","gravatar_id":"","url":"https://api.github.com/users/janezd","html_url":"https://github.com/janezd","followers_url":"https://api.github.com/users/janezd/followers","following_url":"https://api.github.com/users/janezd/following{/other_user}","gists_url":"https://api.github.com/users/janezd/gists{/gist_id}","starred_url":"https://api.github.com/users/janezd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/janezd/subscriptions","organizations_url":"https://api.github.com/users/janezd/orgs","repos_url":"https://api.github.com/users/janezd/repos","events_url":"https://api.github.com/users/janezd/events{/privacy}","received_events_url":"https://api.github.com/users/janezd/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/janezd/orange3","description":"","fork":true,"url":"https://api.github.com/repos/janezd/orange3","forks_url":"https://api.github.com/repos/janezd/orange3/forks","keys_url":"https://api.github.com/repos/janezd/orange3/keys{/key_id}","collaborators_url":"https://api.github.com/repos/janezd/orange3/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/janezd/orange3/teams","hooks_url":"https://api.github.com/repos/janezd/orange3/hooks","issue_events_url":"https://api.github.com/repos/janezd/orange3/issues/events{/number}","events_url":"https://api.github.com/repos/janezd/orange3/events","assignees_url":"https://api.github.com/repos/janezd/orange3/assignees{/user}","branches_url":"https://api.github.com/repos/janezd/orange3/branches{/branch}","tags_url":"https://api.github.com/repos/janezd/orange3/tags","blobs_url":"https://api.github.com/repos/janezd/orange3/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/janezd/orange3/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/janezd/orange3/git/refs{/sha}","trees_url":"https://api.github.com/repos/janezd/orange3/git/trees{/sha}","statuses_url":"https://api.github.com/repos/janezd/orange3/statuses/{sha}","languages_url":"https://api.github.com/repos/janezd/orange3/languages","stargazers_url":"https://api.github.com/repos/janezd/orange3/stargazers","contributors_url":"https://api.github.com/repos/janezd/orange3/contributors","subscribers_url":"https://api.github.com/repos/janezd/orange3/subscribers","subscription_url":"https://api.github.com/repos/janezd/orange3/subscription","commits_url":"https://api.github.com/repos/janezd/orange3/commits{/sha}","git_commits_url":"https://api.github.com/repos/janezd/orange3/git/commits{/sha}","comments_url":"https://api.github.com/repos/janezd/orange3/comments{/number}","issue_comment_url":"https://api.github.com/repos/janezd/orange3/issues/comments{/number}","contents_url":"https://api.github.com/repos/janezd/orange3/contents/{+path}","compare_url":"https://api.github.com/repos/janezd/orange3/compare/{base}...{head}","merges_url":"https://api.github.com/repos/janezd/orange3/merges","archive_url":"https://api.github.com/repos/janezd/orange3/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/janezd/orange3/downloads","issues_url":"https://api.github.com/repos/janezd/orange3/issues{/number}","pulls_url":"https://api.github.com/repos/janezd/orange3/pulls{/number}","milestones_url":"https://api.github.com/repos/janezd/orange3/milestones{/number}","notifications_url":"https://api.github.com/repos/janezd/orange3/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/janezd/orange3/labels{/name}","releases_url":"https://api.github.com/repos/janezd/orange3/releases{/id}","deployments_url":"https://api.github.com/repos/janezd/orange3/deployments","created_at":"2014-08-06T15:40:07Z","updated_at":"2014-09-05T08:19:49Z","pushed_at":"2016-03-18T22:24:47Z","git_url":"git://github.com/janezd/orange3.git","ssh_url":"git@github.com:janezd/orange3.git","clone_url":"https://github.com/janezd/orange3.git","svn_url":"https://github.com/janezd/orange3","homepage":null,"size":37511,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"loading-your-data"}},"base":{"label":"biolab:master","ref":"master","sha":"acf95a9b4bf6103ec9d301f1f3cafe126455254e","user":{"login":"biolab","id":555189,"avatar_url":"https://avatars.githubusercontent.com/u/555189?v=3","gravatar_id":"","url":"https://api.github.com/users/biolab","html_url":"https://github.com/biolab","followers_url":"https://api.github.com/users/biolab/followers","following_url":"https://api.github.com/users/biolab/following{/other_user}","gists_url":"https://api.github.com/users/biolab/gists{/gist_id}","starred_url":"https://api.github.com/users/biolab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/biolab/subscriptions","organizations_url":"https://api.github.com/users/biolab/orgs","repos_url":"https://api.github.com/users/biolab/repos","events_url":"https://api.github.com/users/biolab/events{/privacy}","received_events_url":"https://api.github.com/users/biolab/received_events","type":"Organization","site_admin":false},"repo":{"id":8357227,"name":"orange3","full_name":"biolab/orange3","owner":{"login":"biolab","id":555189,"avatar_url":"https://avatars.githubusercontent.com/u/555189?v=3","gravatar_id":"","url":"https://api.github.com/users/biolab","html_url":"https://github.com/biolab","followers_url":"https://api.github.com/users/biolab/followers","following_url":"https://api.github.com/users/biolab/following{/other_user}","gists_url":"https://api.github.com/users/biolab/gists{/gist_id}","starred_url":"https://api.github.com/users/biolab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/biolab/subscriptions","organizations_url":"https://api.github.com/users/biolab/orgs","repos_url":"https://api.github.com/users/biolab/repos","events_url":"https://api.github.com/users/biolab/events{/privacy}","received_events_url":"https://api.github.com/users/biolab/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/biolab/orange3","description":"Orange 3 data mining suite: http://orange.biolab.si ","fork":false,"url":"https://api.github.com/repos/biolab/orange3","forks_url":"https://api.github.com/repos/biolab/orange3/forks","keys_url":"https://api.github.com/repos/biolab/orange3/keys{/key_id}","collaborators_url":"https://api.github.com/repos/biolab/orange3/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/biolab/orange3/teams","hooks_url":"https://api.github.com/repos/biolab/orange3/hooks","issue_events_url":"https://api.github.com/repos/biolab/orange3/issues/events{/number}","events_url":"https://api.github.com/repos/biolab/orange3/events","assignees_url":"https://api.github.com/repos/biolab/orange3/assignees{/user}","branches_url":"https://api.github.com/repos/biolab/orange3/branches{/branch}","tags_url":"https://api.github.com/repos/biolab/orange3/tags","blobs_url":"https://api.github.com/repos/biolab/orange3/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/biolab/orange3/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/biolab/orange3/git/refs{/sha}","trees_url":"https://api.github.com/repos/biolab/orange3/git/trees{/sha}","statuses_url":"https://api.github.com/repos/biolab/orange3/statuses/{sha}","languages_url":"https://api.github.com/repos/biolab/orange3/languages","stargazers_url":"https://api.github.com/repos/biolab/orange3/stargazers","contributors_url":"https://api.github.com/repos/biolab/orange3/contributors","subscribers_url":"https://api.github.com/repos/biolab/orange3/subscribers","subscription_url":"https://api.github.com/repos/biolab/orange3/subscription","commits_url":"https://api.github.com/repos/biolab/orange3/commits{/sha}","git_commits_url":"https://api.github.com/repos/biolab/orange3/git/commits{/sha}","comments_url":"https://api.github.com/repos/biolab/orange3/comments{/number}","issue_comment_url":"https://api.github.com/repos/biolab/orange3/issues/comments{/number}","contents_url":"https://api.github.com/repos/biolab/orange3/contents/{+path}","compare_url":"https://api.github.com/repos/biolab/orange3/compare/{base}...{head}","merges_url":"https://api.github.com/repos/biolab/orange3/merges","archive_url":"https://api.github.com/repos/biolab/orange3/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/biolab/orange3/downloads","issues_url":"https://api.github.com/repos/biolab/orange3/issues{/number}","pulls_url":"https://api.github.com/repos/biolab/orange3/pulls{/number}","milestones_url":"https://api.github.com/repos/biolab/orange3/milestones{/number}","notifications_url":"https://api.github.com/repos/biolab/orange3/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/biolab/orange3/labels{/name}","releases_url":"https://api.github.com/repos/biolab/orange3/releases{/id}","deployments_url":"https://api.github.com/repos/biolab/orange3/deployments","created_at":"2013-02-22T12:52:56Z","updated_at":"2016-03-18T05:29:07Z","pushed_at":"2016-03-19T00:59:10Z","git_url":"git://github.com/biolab/orange3.git","ssh_url":"git@github.com:biolab/orange3.git","clone_url":"https://github.com/biolab/orange3.git","svn_url":"https://github.com/biolab/orange3","homepage":"","size":75757,"stargazers_count":225,"watchers_count":225,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":104,"mirror_url":null,"open_issues_count":65,"forks":104,"open_issues":65,"watchers":225,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/biolab/orange3/pulls/1132"},"html":{"href":"https://github.com/biolab/orange3/pull/1132"},"issue":{"href":"https://api.github.com/repos/biolab/orange3/issues/1132"},"comments":{"href":"https://api.github.com/repos/biolab/orange3/issues/1132/comments"},"review_comments":{"href":"https://api.github.com/repos/biolab/orange3/pulls/1132/comments"},"review_comment":{"href":"https://api.github.com/repos/biolab/orange3/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/biolab/orange3/pulls/1132/commits"},"statuses":{"href":"https://api.github.com/repos/biolab/orange3/statuses/4a8de1e323ca38a30b8ebdb98284a535c12852b1"}}}}