And here, I believe, is your culprit, in Dialog.on_mouse_drag():

    def on_mouse_drag(self, x, y, dx, dy, buttons, modifiers):
        ...
        if not DialogEventManager.on_mouse_drag(self, x, y, dx, dy,
                                                buttons, modifiers):
            if self.is_movable and self.is_dragging:
                x, y = self.offset
                self.offset = (x + dx, y + dy)

The dx and dy variables are floats, casting x and y as floats as well
for that operation. That offset is later used to calculate other
values, cascading down until it causes the crash. You can fix the
problem by using this line instead:

                self.offset = (int(x + dx), int(y + dy))

Now I'm noticing another bug, which you can see in the screenshots at
the link below. (Look at the background of the dialogs.)

http://filer.case.edu/srj15/kyttenbug.zip
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/pyglet-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to