Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 33 by
jan...@gmail.com: exception thrown with mousemove over frame
http://code.google.com/p/glumpy/issues/detail?id=33
What steps will reproduce the problem?
1. Run demo boy.py (not all demo's seem to be effected)
2. Quickly start moving mouse where window will appear
3. Exception will be thrown as soon as window appears
What is the expected output? What do you see instead?
Traceback (most recent call last):
File "C:\Python27\lib\site-packages\OpenGL\GLUT\special.py", line 125, in
safeCall
return function( *args, **named )
File "C:\Python27\lib\site-packages\glumpy\window\backend_glut.py", line
377, in _passive_motion
self.dispatch_event('on_mouse_motion', x, y, dx, dy)
File "C:\Python27\lib\site-packages\glumpy\window\event.py", line 349, in
dispatch_event
if handler(*args):
File "C:\Python27\lib\site-packages\glumpy\figure.py", line 576, in
on_mouse_motion
if (x,y) in fig:
File "C:\Python27\lib\site-packages\glumpy\figure.py", line 370, in
__contains__
x,y,w,h = self.viewport
File "C:\Python27\lib\site-packages\glumpy\figure.py", line 133, in
<lambda>
viewport = property(lambda self: (int(round(self.x)),
File "C:\Python27\lib\site-packages\glumpy\figure.py", line 125, in
<lambda>
x = property(lambda self: self._x,
AttributeError: 'Frame' object has no attribute '_x'
What version of the product are you using? On what operating system?
commit bfe0cd3fcd157c75b1dc45729b1120cb2a252470
Date: Mon Jul 8 08:45:20 2013 +0200
Windows7
Please provide any additional information below.
It seems that at least the on_mouse_motion event expects Figure to have _x,
_y, _width and _height values.
Solved by adding the following lines to Figure.__init__ constructor in
figure.py
self._x, self._y = 0, 0
self._width, self._height = size
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings