{"action":"created","issue":{"url":"https://api.github.com/repos/Sonkun/python-sfml/issues/115","labels_url":"https://api.github.com/repos/Sonkun/python-sfml/issues/115/labels{/name}","comments_url":"https://api.github.com/repos/Sonkun/python-sfml/issues/115/comments","events_url":"https://api.github.com/repos/Sonkun/python-sfml/issues/115/events","html_url":"https://github.com/Sonkun/python-sfml/issues/115","id":86122020,"number":115,"title":"Bug with 'MouseWheelEvent' events in wrap_event (windows.pyx)","user":{"login":"yoyonel","id":7001058,"avatar_url":"https://avatars.githubusercontent.com/u/7001058?v=3","gravatar_id":"","url":"https://api.github.com/users/yoyonel","html_url":"https://github.com/yoyonel","followers_url":"https://api.github.com/users/yoyonel/followers","following_url":"https://api.github.com/users/yoyonel/following{/other_user}","gists_url":"https://api.github.com/users/yoyonel/gists{/gist_id}","starred_url":"https://api.github.com/users/yoyonel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yoyonel/subscriptions","organizations_url":"https://api.github.com/users/yoyonel/orgs","repos_url":"https://api.github.com/users/yoyonel/repos","events_url":"https://api.github.com/users/yoyonel/events{/privacy}","received_events_url":"https://api.github.com/users/yoyonel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-08T10:35:05Z","updated_at":"2015-08-06T12:57:44Z","closed_at":null,"body":"Build informations:\r\n- OS: Mint 17 x64\r\n- Python: Python 2.7.6\r\n- GCC (x86_64-linux-gnu-gcc): gcc version 4.8.4 \r\n- Cython: Cython version 0.22\r\n- SFML: /usr/local/lib/libsfml-system.so -> libsfml-system.so.2.3 (get from GIT)\r\n\r\nthe bug appears when using the mouse wheel:\r\npython-sfml/examples/opengl$ python opengl.py \r\nTraceback (most recent call last):\r\n  File \"opengl.py\", line 51, in <module>\r\n    for event in window.events:\r\n  File \"sfml/window.pyx\", line 799, in events_generator (src/sfml/window.cpp:14878)\r\n  File \"sfml/window.pyx\", line 161, in sfml.window.wrap_event (src/sfml/window.cpp:2980)\r\nUnboundLocalError: local variable 'event' referenced before assignment\r\n\r\nIn windows.pyx (@130), you have:\r\nelif p.type == sf.event.MouseWheelMoved:\r\n        event = MouseWheelEvent.__new__(MouseWheelEvent)\r\nbut ... seems to not working well ...\r\n\r\nAny idea to fix this ?\r\nThx in advance."},"comment":{"url":"https://api.github.com/repos/Sonkun/python-sfml/issues/comments/128353916","html_url":"https://github.com/Sonkun/python-sfml/issues/115#issuecomment-128353916","issue_url":"https://api.github.com/repos/Sonkun/python-sfml/issues/115","id":128353916,"user":{"login":"TankOs","id":111807,"avatar_url":"https://avatars.githubusercontent.com/u/111807?v=3","gravatar_id":"","url":"https://api.github.com/users/TankOs","html_url":"https://github.com/TankOs","followers_url":"https://api.github.com/users/TankOs/followers","following_url":"https://api.github.com/users/TankOs/following{/other_user}","gists_url":"https://api.github.com/users/TankOs/gists{/gist_id}","starred_url":"https://api.github.com/users/TankOs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TankOs/subscriptions","organizations_url":"https://api.github.com/users/TankOs/orgs","repos_url":"https://api.github.com/users/TankOs/repos","events_url":"https://api.github.com/users/TankOs/events{/privacy}","received_events_url":"https://api.github.com/users/TankOs/received_events","type":"User","site_admin":false},"created_at":"2015-08-06T12:57:44Z","updated_at":"2015-08-06T12:57:44Z","body":"Confirmed on me side as well."}}