[wxPython-users] Viewing images layed on top of each other

Chris Barker Chris.Barker at noaa.gov
Wed Jan 9 13:59:52 PST 2008


Karl Kobata wrote:
> I wanted to thank you for point me to Floatcanvas.

You're quite welcome.

> I have integrated the canvas into our tool.  The zoom, pan and origin in the
> lower left is god sent.

That is exactly what I built it for!

> I do have additional usage questions :

For further questions, please post to the floatcanvas list:

http://mail.mithis.com/cgi-bin/mailman/listinfo/floatcanvas

1) the source -- look in FloatCanvas.py for the DrawObjects themselves 
-- the Add** methods are auto-generated, and use the same parameters.

2) the Doxygen-generated docs, which are linked to in the Wiki, which 
seems to be down at the moment (I don't administer it). If it's not up 
soon, I'll try to find out what's going on:

http://morticia.cs.dal.ca/FloatCanvas/

(they're not totally up to date, but have most of it)

> 2) I am not sure how to use the group function that you mentioned in a
> previous email.  Will you  point me to data/instructions/example?

take a look in the the "Demo" dir for GroupDemo.py

> 2) do you have suggestions on how to prt multiple lines of text stacked
> onto each other spacing them by the font extent?

Have you looked at the ScaledTextBox DrawObject? It does rudimentary 
(very!) typesetting.

>  Using the GetTextExtent
> did not give me the correct spacing.

Well, ScaledTextBox uses GetTextExtent too, so it may not help.

That's a big issue -- DC.GetTextExtent() really is not suitable for 
typesetting -- maybe GraphicsContext has something better, I haven't 
looked into it.

> Thanks so much for your help.

You're welcome, I'm glad it's coming together for you.

-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

Chris.Barker at noaa.gov




More information about the wxpython-users mailing list