{"action":"created","issue":{"url":"https://api.github.com/repos/UV-CDAT/uvcdat/issues/1276","labels_url":"https://api.github.com/repos/UV-CDAT/uvcdat/issues/1276/labels{/name}","comments_url":"https://api.github.com/repos/UV-CDAT/uvcdat/issues/1276/comments","events_url":"https://api.github.com/repos/UV-CDAT/uvcdat/issues/1276/events","html_url":"https://github.com/UV-CDAT/uvcdat/issues/1276","id":73441759,"number":1276,"title":"grabWindowPixmap() broken for QCDATWidget","user":{"login":"remram44","id":426784,"avatar_url":"https://avatars.githubusercontent.com/u/426784?v=3","gravatar_id":"","url":"https://api.github.com/users/remram44","html_url":"https://github.com/remram44","followers_url":"https://api.github.com/users/remram44/followers","following_url":"https://api.github.com/users/remram44/following{/other_user}","gists_url":"https://api.github.com/users/remram44/gists{/gist_id}","starred_url":"https://api.github.com/users/remram44/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/remram44/subscriptions","organizations_url":"https://api.github.com/users/remram44/orgs","repos_url":"https://api.github.com/users/remram44/repos","events_url":"https://api.github.com/users/remram44/events{/privacy}","received_events_url":"https://api.github.com/users/remram44/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/UV-CDAT/uvcdat/labels/Bug","name":"Bug","color":"e10c02"},{"url":"https://api.github.com/repos/UV-CDAT/uvcdat/labels/Question","name":"Question","color":"cc317c"},{"url":"https://api.github.com/repos/UV-CDAT/uvcdat/labels/VCS","name":"VCS","color":"0b02e1"},{"url":"https://api.github.com/repos/UV-CDAT/uvcdat/labels/VisTrails","name":"VisTrails","color":"e102d8"}],"state":"open","locked":false,"assignee":{"login":"remram44","id":426784,"avatar_url":"https://avatars.githubusercontent.com/u/426784?v=3","gravatar_id":"","url":"https://api.github.com/users/remram44","html_url":"https://github.com/remram44","followers_url":"https://api.github.com/users/remram44/followers","following_url":"https://api.github.com/users/remram44/following{/other_user}","gists_url":"https://api.github.com/users/remram44/gists{/gist_id}","starred_url":"https://api.github.com/users/remram44/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/remram44/subscriptions","organizations_url":"https://api.github.com/users/remram44/orgs","repos_url":"https://api.github.com/users/remram44/repos","events_url":"https://api.github.com/users/remram44/events{/privacy}","received_events_url":"https://api.github.com/users/remram44/received_events","type":"User","site_admin":false},"milestone":null,"comments":5,"created_at":"2015-05-05T21:49:29Z","updated_at":"2015-06-11T16:30:34Z","closed_at":null,"body":"The saveToPNG() implementation in QCDATWidget doesn't correctly handle the case where the filename argument is None, which makes VCS fail.\r\n```\r\nTraceback (most recent call last):\r\n  File \"/home/remram/Documents/programming/uvcdat-vistrails/vistrails/packages/spreadsheet/spreadsheet_tabcontroller.py\", line 426, in exportSheetToSingleImageActionTriggered\r\n    self.currentWidget().exportSheetToImage(filename)\r\n  File \"/home/remram/Documents/programming/uvcdat-vistrails/vistrails/packages/spreadsheet/spreadsheet_tab.py\", line 543, in exportSheetToImage\r\n    pix = widget.grabWindowPixmap()\r\n  File \"/home/remram/Documents/programming/uvcdat-vistrails/vistrails/packages/uvcdat_cdms/vtk_classes.py\", line 836, in grabWindowPixmap\r\n    uchar = self.saveToPNG(None)  # crashes\r\n  File \"/home/remram/Documents/programming/uvcdat-vistrails/vistrails/packages/uvcdat_cdms/init.py\", line 1511, in saveToPNG\r\n    self.canvas.png(filename)\r\n  File \"/home/remram/uvcdat-builds/builds/32f3893f053107374d2b4b8fb0feee5efbcaedee/install/lib/python2.7/site-packages/vcs/Canvas.py\", line 4783, in png\r\n    return self.backend.png(file,width,height,units,draw_white_background, **args )\r\n  File \"/home/remram/uvcdat-builds/builds/32f3893f053107374d2b4b8fb0feee5efbcaedee/install/lib/python2.7/site-packages/vcs/VTKPlots.py\", line 1577, in png\r\n    if not file.split('.')[-1].lower() in ['png']:\r\nAttributeError: 'NoneType' object has no attribute 'split'\r\n```\r\nI'm not sure what is expected here."},"comment":{"url":"https://api.github.com/repos/UV-CDAT/uvcdat/issues/comments/111194415","html_url":"https://github.com/UV-CDAT/uvcdat/issues/1276#issuecomment-111194415","issue_url":"https://api.github.com/repos/UV-CDAT/uvcdat/issues/1276","id":111194415,"user":{"login":"doutriaux1","id":2781425,"avatar_url":"https://avatars.githubusercontent.com/u/2781425?v=3","gravatar_id":"","url":"https://api.github.com/users/doutriaux1","html_url":"https://github.com/doutriaux1","followers_url":"https://api.github.com/users/doutriaux1/followers","following_url":"https://api.github.com/users/doutriaux1/following{/other_user}","gists_url":"https://api.github.com/users/doutriaux1/gists{/gist_id}","starred_url":"https://api.github.com/users/doutriaux1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/doutriaux1/subscriptions","organizations_url":"https://api.github.com/users/doutriaux1/orgs","repos_url":"https://api.github.com/users/doutriaux1/repos","events_url":"https://api.github.com/users/doutriaux1/events{/privacy}","received_events_url":"https://api.github.com/users/doutriaux1/received_events","type":"User","site_admin":false},"created_at":"2015-06-11T16:30:34Z","updated_at":"2015-06-11T16:30:34Z","body":"@remram44 I believe that's what bg=1 is for."}}