{"action":"created","issue":{"url":"https://api.github.com/repos/spyder-ide/qtpy/issues/105","repository_url":"https://api.github.com/repos/spyder-ide/qtpy","labels_url":"https://api.github.com/repos/spyder-ide/qtpy/issues/105/labels{/name}","comments_url":"https://api.github.com/repos/spyder-ide/qtpy/issues/105/comments","events_url":"https://api.github.com/repos/spyder-ide/qtpy/issues/105/events","html_url":"https://github.com/spyder-ide/qtpy/issues/105","id":225098438,"number":105,"title":"module 'qtpy.QtGui' has no attribute 'QMainWindow'","user":{"login":"junesun","id":2110800,"avatar_url":"https://avatars3.githubusercontent.com/u/2110800?v=3","gravatar_id":"","url":"https://api.github.com/users/junesun","html_url":"https://github.com/junesun","followers_url":"https://api.github.com/users/junesun/followers","following_url":"https://api.github.com/users/junesun/following{/other_user}","gists_url":"https://api.github.com/users/junesun/gists{/gist_id}","starred_url":"https://api.github.com/users/junesun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/junesun/subscriptions","organizations_url":"https://api.github.com/users/junesun/orgs","repos_url":"https://api.github.com/users/junesun/repos","events_url":"https://api.github.com/users/junesun/events{/privacy}","received_events_url":"https://api.github.com/users/junesun/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-04-28T14:30:45Z","updated_at":"2017-04-28T17:39:24Z","closed_at":"2017-04-28T17:39:24Z","body":"When running the matplotlib example \"embedding_in_qt4.py\" \r\n(http://matplotlib.org/examples/user_interfaces/embedding_in_qt4.html#user-interfaces-embedding-in-qt4),I met the error as follows:\r\n \r\n File \"embedding_in_qt4.py\", line 80, in <module>\r\n    class ApplicationWindow(QtGui.QMainWindow):\r\nAttributeError: module 'qtpy.QtGui' has no attribute 'QMainWindow'\r\n\r\nI have replaced the “PyQt4” by \"qtpy\" in the line \"from qtpy import QtGui, QtCore\""},"comment":{"url":"https://api.github.com/repos/spyder-ide/qtpy/issues/comments/298061213","html_url":"https://github.com/spyder-ide/qtpy/issues/105#issuecomment-298061213","issue_url":"https://api.github.com/repos/spyder-ide/qtpy/issues/105","id":298061213,"user":{"login":"ccordoba12","id":365293,"avatar_url":"https://avatars0.githubusercontent.com/u/365293?v=3","gravatar_id":"","url":"https://api.github.com/users/ccordoba12","html_url":"https://github.com/ccordoba12","followers_url":"https://api.github.com/users/ccordoba12/followers","following_url":"https://api.github.com/users/ccordoba12/following{/other_user}","gists_url":"https://api.github.com/users/ccordoba12/gists{/gist_id}","starred_url":"https://api.github.com/users/ccordoba12/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ccordoba12/subscriptions","organizations_url":"https://api.github.com/users/ccordoba12/orgs","repos_url":"https://api.github.com/users/ccordoba12/repos","events_url":"https://api.github.com/users/ccordoba12/events{/privacy}","received_events_url":"https://api.github.com/users/ccordoba12/received_events","type":"User","site_admin":false},"created_at":"2017-04-28T17:39:24Z","updated_at":"2017-04-28T17:39:24Z","body":"The right import is\r\n\r\n    from qtpy import QtWidgets\r\n    QtWidgets.QMainWindow\r\n\r\nplease read our Readme to read about how `qtpy` works."}}
{"actor":{"display_login":"ccordoba12"}}