Hello,

When using FC_MOTION event, associated on a ScaledBitmap, like tihs :

A = self.Canvas.AddScaledBitmap(img, (x,-y), Height=img.GetHeight(),
Position = 'tl')
A.Bind(FloatCanvas.EVT_FC_MOTION, self.OnMotion)

I get this error :

Traceback (most recent call last):
  File "D:\temp\test.py", line 30, in Test
     A.Bind(FloatCanvas.EVT_FC_MOTION, self.OnMotion)
  File "D:\temp\floatcanvas\FloatCanvas.py", line 286, in Bind
    self._Canvas.HitDict[Event][self.HitColor] = (self) # put the object in
the hit dict, indexed by its color
KeyError: 10320

Do you have any idea why FC_MOTION brings a KeyError, related on color ? I
didn't use any color at all for A.

Thanks a lot in advance,

Jo
_______________________________________________
FloatCanvas mailing list
[email protected]
http://mailman.paulmcnett.com/cgi-bin/mailman/listinfo/floatcanvas

Reply via email to