Andy,
> In the documentation for FloatCanvas, you say "please let me know if > you are using this." So I am attaching a zip file of TessMaker Very cool! thanks. Any chance you could put it up on the Wiki: http://morticia.cs.dal.ca/FloatCanvas/ You can put it in the "FloatCanvas Showcase" section. I'd love others to be able to see it. > First of all, thank you for producing such a useful library - I looked > around quite a bit before deciding what to base TessMaker on, and > FloatCanvas was just what I was looking for. It is the kind of thing I had in mind for it. > I did need to make one slight mod to FloatCnavas, because I found that > even if I set FloatCanvas.UseHitTest to False in my code, the hit test > was still being used. So in the method "HitTest", I changed the line: > if self.HitDict: > to > if self.HitDict and self.UseHitTest: > (it is line 2326 in my version of FloatCanvas.py) > After that it behaved exactly as I expected. > I'm not sure whether this is a bug, because I'm not sure whether what I > expected was what you intended. Well, no, that's not what I had in mind -- UseHitTest is there so that the Canvas knows whether it needs to maintain the hittest buffer or not. I think you could get in trouble setting it to False, then re-sizing the canvas, then setting it to True again and expecting hit-testing to work. What you are doing should be accomplished with GUIModes -- you set the Canvas to a new GUIMode that does or doesn't do the hit testing (ir anything else you want with the mouse events). I'm kind of in the middle of re-factoring some examples to use GUImodes in a better way. You might want to check out the SVN version. > If you do look at the code, I should be grateful for any comments on how > I am using FloatCanvas, as this is my first Python program more than > about 20 lines long. Nothing obvious at a quick glance. There are some layout issues on OS-X, but I haven't had a chance to poke into them yet. > Sorry this is such a long email! Not at all. Nice stuff! Please join our mailing list: http://mail.mithis.com/cgi-bin/mailman/listinfo/floatcanvas Also, there is a chance that we'll get a Google Summer of Code project funded to do a FloatCanvas re-factor -- so stay tuned! -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception [EMAIL PROTECTED] _______________________________________________ FloatCanvas mailing list [email protected] http://mail.mithis.com/cgi-bin/mailman/listinfo/floatcanvas
