Hi Kabir, This file contains the fix: pyglet/window/win32/__init__.py <https://bitbucket.org/pyglet/pyglet/pull-requests/112/fix-bug-introduced-in-pr-104-commit/diff#chg-pyglet/window/win32/__init__.py> You need to update your pyglet install with the new file. How did you install pyglet? If you installed pyglet from pip, then the easy thing to do is upgrade to the development version:
pip install --upgrade https://bitbucket.org/pyglet/pyglet/get/tip.zip You can also just copy the __init__ file from the Bitbucket repository, into your pyglet install location. On Friday, April 6, 2018 at 6:45:48 AM UTC+9, kabir kumar wrote: > > Hello. I am having the same problem and wanted to know the whole step by > step process of implementing this "__init__.py" file from the pull request. > Please I am working for a project and using pyglet and am on a deadline. > Kindly Reply as soon as possible. > > Thank you > > On Wednesday, January 24, 2018 at 3:58:29 PM UTC+5, Doug World wrote: > >> This simple program, using the latest pyglet 1.3.0 does not trigger the >> event on_mouse_press. However it does trigger on event on_mouse_release. >> What am I doing wrong? Thanks. >> >> #Using pyglet 1.3.0 we never see the on_mouse_press event >> import pyglet >> window = pyglet.window.Window(width=400, height=300, caption="TEST pyglet >> on_mouse_press event") >> >> >> @window.event >> def on_mouse_press(x, y, button, modifiers): >> print('on_mouse_press') >> >> >> @window.event >> def on_mouse_release(x, y, button, modifiers): >> print('on_mouse_release') >> >> >> @window.event >> def on_draw(): >> window.clear() >> #label.draw() >> >> pyglet.app.run() >> >> -- You received this message because you are subscribed to the Google Groups "pyglet-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/pyglet-users. For more options, visit https://groups.google.com/d/optout.
