Actually, the booting of the debugger happens whether I put a break point
and it works, or whether I don't put a breakpoint and it doesn't. But,
whenever the breakpoint prevented failure, it was always hit at least once
before the failure. I just put a condition on it so that it wouldn't be hit
until the failure, and now it never gets hit at all. So, all is well with
the cosmos after all.

On Sun, Mar 22, 2015 at 2:25 PM, Justin Northrop <justinorth...@gmail.com>
wrote:

> Actually, your explanation makes sense; the debugger may have already
> interfered with the focus from the time it boots.
>
> On Sun, Mar 22, 2015 at 1:45 PM, Justin Northrop <justinorth...@gmail.com>
> wrote:
>
>> Thank you very much for your thorough reply. Your guess about the
>> breakpoints doesn't make sense to me, because the order of causality does
>> not flow in that order. When my program is in a state in which pressing A
>> will not trigger a key press event (because I've just pressed and released
>> ALT), and I press A, then no key pressed event fires--unless there is a
>> break point in on_key_press. So you see, the breakpoint can only be hit if
>> the code *has already performed correctly in the place that it normally
>> fails*. This indicates to me that something horrible is going on. I am
>> amazed.
>>
>> On Sun, Mar 22, 2015 at 1:52 AM, Leif Theden <leif.the...@gmail.com>
>> wrote:
>>
>>> I fixed it a while ago, but the fix was never merged.  Tonight I applied
>>> an old patch I made and made a pull request.  It may be a few days until
>>> this is fixed in bitbucket. In the mean time, don't assign anything to the
>>> ALT key.  This bug has been known for a long time, but only affects windows
>>> users, and is related to the ALT key, which not many people use anyway.
>>>
>>> I can't say how the breakpoints affects it for certain, but my guess is
>>> that the breakpoints are causing the pyglet window to lose focus, which
>>> interferes with key events in windows, and those side effects don't cause
>>> the behavior that was causing erratic input after pressing ALT.  A debugger
>>> should never cause functions to work differently.  In this case it is more
>>> related to the windows window manager more than anything.
>>>
>>>
>>> On Saturday, March 21, 2015 at 8:54:06 PM UTC-7, pyglet_has_bugs wrote:
>>>
>>>> Wow, so this has been known for a while, and you just finally fixed it?
>>>> Just for me? :o :D
>>>>
>>>> On Saturday, March 21, 2015 at 8:31:02 PM UTC-4, Leif Theden wrote:
>>>>>
>>>>> Please, your nick 'pyglet_has_bugs' is a bit excessive; 99.999%
>>>>> software projects have bugs.  In any case, thank you for the detailed bug
>>>>> report.  In the future please submit bug reports to
>>>>> https://bitbucket.org/pyglet/pyglet/issues.  Finally, I've fixed the
>>>>> problem on my branch and submitted a pull request.
>>>>>
>>>>> In case anyone is interested, the issue is documented here:
>>>>> https://code.google.com/p/pyglet/issues/detail?id=462&q=
>>>>> leif&colspec=ID%20Stars%20Type%20Status%20OpSys%20Modified%20Summary
>>>>>
>>>>>
>>>>> On Saturday, March 21, 2015 at 5:19:02 PM UTC-5, pyglet_has_bugs wrote:
>>>>>>
>>>>>> Someone on reddit.com/r/learnpython says they couldn't reproduce the
>>>>>> bug with Pyglet 1.2.2 and Python 3 on Linux.
>>>>>>
>>>>>> http://redd.it/2zqtyf
>>>>>>
>>>>>  --
>>> You received this message because you are subscribed to a topic in the
>>> Google Groups "pyglet-users" group.
>>> To unsubscribe from this topic, visit
>>> https://groups.google.com/d/topic/pyglet-users/DuHs6HxXSm0/unsubscribe.
>>> To unsubscribe from this group and all its topics, send an email to
>>> pyglet-users+unsubscr...@googlegroups.com.
>>> To post to this group, send email to pyglet-users@googlegroups.com.
>>> Visit this group at http://groups.google.com/group/pyglet-users.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>

-- 
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 pyglet-users+unsubscr...@googlegroups.com.
To post to this group, send email to pyglet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/pyglet-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to