{"action":"created","issue":{"url":"https://api.github.com/repos/nucleic/enaml/issues/108","repository_url":"https://api.github.com/repos/nucleic/enaml","labels_url":"https://api.github.com/repos/nucleic/enaml/issues/108/labels{/name}","comments_url":"https://api.github.com/repos/nucleic/enaml/issues/108/comments","events_url":"https://api.github.com/repos/nucleic/enaml/issues/108/events","html_url":"https://github.com/nucleic/enaml/issues/108","id":23743586,"node_id":"MDU6SXNzdWUyMzc0MzU4Ng==","number":108,"title":"message_box example and factories(about, critical, questions, etc.) don't work","user":{"login":"blakejohnson","id":866695,"node_id":"MDQ6VXNlcjg2NjY5NQ==","avatar_url":"https://avatars0.githubusercontent.com/u/866695?v=4","gravatar_id":"","url":"https://api.github.com/users/blakejohnson","html_url":"https://github.com/blakejohnson","followers_url":"https://api.github.com/users/blakejohnson/followers","following_url":"https://api.github.com/users/blakejohnson/following{/other_user}","gists_url":"https://api.github.com/users/blakejohnson/gists{/gist_id}","starred_url":"https://api.github.com/users/blakejohnson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blakejohnson/subscriptions","organizations_url":"https://api.github.com/users/blakejohnson/orgs","repos_url":"https://api.github.com/users/blakejohnson/repos","events_url":"https://api.github.com/users/blakejohnson/events{/privacy}","received_events_url":"https://api.github.com/users/blakejohnson/received_events","type":"User","site_admin":false},"labels":[{"id":57841761,"node_id":"MDU6TGFiZWw1Nzg0MTc2MQ==","url":"https://api.github.com/repos/nucleic/enaml/labels/PySide%20bug","name":"PySide bug","color":"e11d21","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2013-12-04T20:26:33Z","updated_at":"2018-09-04T07:17:20Z","closed_at":null,"author_association":"NONE","body":"In trying to run the message_box example, if I click on any of the buttons I get the error message: `AttributeError: 'NoneType' object has no attribute 'setWidget'`. The call stack shows that this happens in the call to `set_parent`.\n\nPossibly relevant: I am using PySide rather than PyQt.\n"},"comment":{"url":"https://api.github.com/repos/nucleic/enaml/issues/comments/418265842","html_url":"https://github.com/nucleic/enaml/issues/108#issuecomment-418265842","issue_url":"https://api.github.com/repos/nucleic/enaml/issues/108","id":418265842,"node_id":"MDEyOklzc3VlQ29tbWVudDQxODI2NTg0Mg==","user":{"login":"kiwi0fruit","id":19735117,"node_id":"MDQ6VXNlcjE5NzM1MTE3","avatar_url":"https://avatars3.githubusercontent.com/u/19735117?v=4","gravatar_id":"","url":"https://api.github.com/users/kiwi0fruit","html_url":"https://github.com/kiwi0fruit","followers_url":"https://api.github.com/users/kiwi0fruit/followers","following_url":"https://api.github.com/users/kiwi0fruit/following{/other_user}","gists_url":"https://api.github.com/users/kiwi0fruit/gists{/gist_id}","starred_url":"https://api.github.com/users/kiwi0fruit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kiwi0fruit/subscriptions","organizations_url":"https://api.github.com/users/kiwi0fruit/orgs","repos_url":"https://api.github.com/users/kiwi0fruit/repos","events_url":"https://api.github.com/users/kiwi0fruit/events{/privacy}","received_events_url":"https://api.github.com/users/kiwi0fruit/received_events","type":"User","site_admin":false},"created_at":"2018-09-04T07:17:20Z","updated_at":"2018-09-04T07:17:20Z","author_association":"NONE","body":"Message box doesn't work with **PySide2**\r\n\r\nSimply using message box leads to error with PySide2: \r\n\r\n```py\r\nfrom enaml.stdlib.message_box import information\r\n...\r\n    triggered ::\r\n        information(self, \"Testing\",\r\n            (\"If you see this then presumably PySide-Enaml bug was patched.\\n\" +\r\n             \"But it still can be broken if Python hangs after pressing OK.\")\r\n        )\r\n...\r\n```\r\nError:\r\n```\r\nTraceback (most recent call last):\r\n  File \"C:\\Miniconda3\\envs\\enaml\\lib\\site-packages\\enaml\\qt\\qt_action.py\", line 79, in on_triggered\r\n    self.declaration.triggered(checked)\r\n  File \"C:\\Miniconda3\\envs\\enaml\\lib\\site-packages\\enaml\\core\\declarative_meta.py\", line 68, in declarative_change_handler\r\n    engine.write(owner, change['name'], change)\r\n  File \"C:\\Miniconda3\\envs\\enaml\\lib\\site-packages\\enaml\\core\\expression_engine.py\", line 217, in write\r\n    pair.writer(owner, name, change)\r\n  File \"C:\\Miniconda3\\envs\\enaml\\lib\\site-packages\\enaml\\core\\standard_handlers.py\", line 82, in __call__\r\n    call_func(func, (), {}, scope)\r\n  File \"C:\\PyCharmProjects\\enaml_video\\enaml_video_view.enaml\", line 51, in f\r\n    )\r\n  File \"C:\\Miniconda3\\envs\\enaml\\lib\\site-packages\\enaml\\stdlib\\message_box.enaml\", line 148, in information\r\n    return _exec_box(parent, title, text, buttons, 'information')\r\n  File \"C:\\Miniconda3\\envs\\enaml\\lib\\site-packages\\enaml\\stdlib\\message_box.enaml\", line 305, in _exec_box\r\n    box.set_parent(parent)\r\n  File \"C:\\Miniconda3\\envs\\enaml\\lib\\site-packages\\enaml\\core\\object.py\", line 160, in set_parent\r\n    parent.child_added(self)\r\n  File \"C:\\Miniconda3\\envs\\enaml\\lib\\site-packages\\enaml\\widgets\\toolkit_object.py\", line 185, in child_added\r\n    child.activate_proxy()\r\n  File \"C:\\Miniconda3\\envs\\enaml\\lib\\site-packages\\enaml\\widgets\\toolkit_object.py\", line 210, in activate_proxy\r\n    self.activate_top_down()\r\n  File \"C:\\Miniconda3\\envs\\enaml\\lib\\site-packages\\enaml\\widgets\\toolkit_object.py\", line 226, in activate_top_down\r\n    self.proxy.activate_top_down()\r\n  File \"C:\\Miniconda3\\envs\\enaml\\lib\\site-packages\\enaml\\qt\\qt_toolkit_object.py\", line 75, in activate_top_down\r\n    self.create_widget()\r\n  File \"C:\\Miniconda3\\envs\\enaml\\lib\\site-packages\\enaml\\qt\\qt_dialog.py\", line 72, in create_widget\r\n    self.widget = QWindowDialog(self, self.parent_widget(), flags)\r\n  File \"C:\\Miniconda3\\envs\\enaml\\lib\\site-packages\\enaml\\qt\\qt_dialog.py\", line 41, in __init__\r\n    super(QWindowDialog, self).__init__(parent, flags)\r\nTypeError: 'PySide2.QtWidgets.QDialog' called with wrong argument types:\r\n  PySide2.QtWidgets.QDialog(PySide2.QtWidgets.QAction, PySide2.QtCore.Qt.WindowType)\r\nSupported signatures:\r\n  PySide2.QtWidgets.QDialog(PySide2.QtWidgets.QWidget = nullptr, PySide2.QtCore.Qt.WindowFlags = Qt.WindowFlags())\r\n\r\nProcess finished with exit code 0\r\n```\r\n\r\nPresumably now it's worth investigations as PySide2 was added to pypi. I installed PySide2-5.11.1 from pip (`pip install pyside2`)."}}
{"actor":{"display_login":"kiwi0fruit"}}