On Wed, Mar 5, 2014 at 9:22 AM, Virgil Stokes <[email protected]> wrote:
> Ok Chris,
> I finally am able to use your floatcanvas package --- the problem was
> mainly my own stupidity :-( . I am using the "installed version" (vers.
> 0.9.18).
>
Glad to hear you got it working.
> My main tasks are to draw (on top of PNG images): lines, rectangles, and
> filled circles and then save these "marked-up" images. Also, I will
> frequently need to zoom in/out of regions defined by rubber band
> rectangles. It seems that floatcanvas has most of the features that need
> already built-in
>
Indeed it does.
One feature that I could not find in your demos was drawing rubber band
> lines --- perhaps I missed it.
>
It's there -- it was integrated ith teh Zoom-In functionality, but I pulled
out a version and put it in:
floatcanvas.utilities.GUI
It provides a "GUI Mode" that lets the user draw a rubber band box.
I'm not sure if there is a demo on using it anywhere at the moment, though.
Also, when I tried the demo MovingElements.py I got the following
error: *NameError:
> global name 'BBox' is not defined*.
>
Looking at the code I"ve got, it works fine, but I see that it doesn't
import BBox if it's run with the installed version. You'll need to add:
from wx.lib.floatcanvas.Utilities import BBox
to the 'installed' import black.
I've added that to SVN.
Also, in the future, how can update floatcanvas to the latest release?
>
I _should_ have a proper setup.py, but in the meantime, what I would do is
add a floatcanvas directory right in your code, and do an svn checkout in
there.
Then adjust your imports so that that version gets found.
You can then simply do an svn update to get the latest version.
If you happen to be using subversion to manage your own code, this could
get confused, in which case, I'd put floatcanvas in an external directory
and and make sure that you can import it one way or another.
You _could_ also copy the SVN version on top of the version in wx.lib, but
I think that's kind of fragile if you update wx, for instance.
If anyone wants to write a setup.py that will install it into its own
namespace as a package, I'll add that to the distribution -- it would be
nice to be abel to simply do:
./setup.py install
or
./setup.py develop
and be done with it.
-Chris
> I have now subscribed to the floatcanvas email list and will try to keep
> up-to-date on the nice graphics package.
>
> Best regards and keep up the good work :-)
>
> --V
>
>
> On 04-Mar-2014 00:42, Chris Barker wrote:
>
> On Mon, Mar 3, 2014 at 3:40 PM, Virgil Stokes <[email protected]> wrote:
>
>> is C:\python27\lib\site-packages\wx-3.0-msw\wx\lib\floatcanvas
>>
>> missing altogether?
>>
>> Yes it is missing altogether.
>>
>
> Darn
>
>> I will give it a try .. thanks.
>>
>>
>>
> Let me know how it goes.
>
> Sorry this isn't easier.
>
> -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]
>
>
>
>
--
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://mailman.paulmcnett.com/cgi-bin/mailman/listinfo/floatcanvas