Hi, Thanks for your interest in FloatCanvas. I have cc'd the floatcanvas mailing list, as others may be able to help, and I like to have these converstaions in the archive. you may want to join the list -- there is very little traffic:
http://paulmcnett.com/cgi-bin/mailman/listinfo/floatcanvas On to your question: On Sat, Jan 14, 2012 at 2:22 AM, zxo102 ouyang <[email protected]> wrote: > I am learning it. Here is my question: > If I am doing this > step 1. the left mouse button is pressed (down), Point 1; > step 2. the cursor is moved to anther point; > step 3. the left mouse button is released (up) , Point 2. > via those steps, i want to get this area selected on an image and draw > the rectangular area defined by Point 1 and Point 2. > > Any suggestions? Thanks a lot in advance. This is often called a "rubber band box". You can find code for doing it in: floatcanvas/Utilities/GUI.py -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://paulmcnett.com/cgi-bin/mailman/listinfo/floatcanvas
