flash in wxPython

See reply below

···

-----Original Message-----
From: Robin Dunn [mailto:robin@alldunn.com]
Sent: Tuesday, May 04, 2004 11:23 AM
To: wxPython-users@lists.wxwidgets.org
Subject: Re: [wxPython-users] flash in wxPython

stephene@sjsoft.com wrote:

Hi

I've been looking at the ActiveX_FlashWindow widget in wxPython 2.5.1,

and I was wondering, what are the implications for using flash in a
wxPython application? I'm thinking of using flash to draw graphs (the
alternative is to use wxPython's drawing routines, but I think that
flash might take some of the work off my hands).

Would using the ActiveX_FlashWindow mean that the application will
only work under Windows?

Yes. ActiveX is a Windows only technology.

Is there a way of using flash in applications without compremising
cross-platform compatability?

Not currently.

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

========================================================================

Stephene, check this out: http://www.swift-tools.net/Flash/

GPL Flash (tm) library is a set of source codes that allow to play
Flash(tm) movies.
The core of the library is a graphic renderer that is portable is to be
re-used in applications that need to play Flash(tm) movies.

Bruce

and I was wondering, what are the implications for using flash in a wxPython application? I'm thinking of using flash to draw graphs (the alternative is to use wxPython's drawing routines, but I think that flash might take some of the work off my hands)
   

<random thought>
perhaps not relevant, but what about using SVG graphics, (also vector based, w3c standard...) instead of flash, not sure if wxwidgets/wxpython directly supports this..?

</random thought>

/Simon

Simon Dahlbacka wrote:

<random thought>
perhaps not relevant, but what about using SVG graphics, (also vector based, w3c standard...) instead of flash, not sure if wxwidgets/wxpython directly supports this..?

I think it's supported by wxart2d, but that hasn't been wrapped for wxPython, and I understand it will be a substantial project to do so, but I'd love to see it done!

You also might want to check out antigrain graphics:

http://www.antigrain.com/

I've seen it used via Python in a couple of projects, Chaco being one of them. Chaco is a plotting package developed by Enthought. It's kind of off the radar right now, but still open source.

The other place I've seen it used is the Matplotlib package:

http://matplotlib.sourceforge.net/backends.html#Agg

I see no mention of a general purpose Agg wrapper, but both matplotlib and chaco use agg with wxPython.

-Chris

···

--
Christopher Barker, Ph.D.
Oceanographer
                                         
NOAA/OR&R/HAZMAT (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception

Chris.Barker@noaa.gov

Oh my, for some reason I had never looked at anti-grain geometry. Wow! Ook, me want now! There seems to be a conflict on the license with doing a wrapper and including it in wxWidgets, but perhaps the commercial use clause could be modified. wxWidgets needs something like this big time.

I tried figuring out the relation to Chaco, but due to the the scipy.org site construction and numerous apparently out-of-date pages I can't figure it out. Anyway, I would like to find out more, especially if any of the wx-dev people have already talked to the AAG folks.

ka

···

On May 5, 2004, at 10:31 AM, Chris Barker wrote:

Simon Dahlbacka wrote:

<random thought>
perhaps not relevant, but what about using SVG graphics, (also vector based, w3c standard...) instead of flash, not sure if wxwidgets/wxpython directly supports this..?

I think it's supported by wxart2d, but that hasn't been wrapped for wxPython, and I understand it will be a substantial project to do so, but I'd love to see it done!

http://wxart2d.sourceforge.net/

You also might want to check out antigrain graphics:

http://www.antigrain.com/

I've seen it used via Python in a couple of projects, Chaco being one of them. Chaco is a plotting package developed by Enthought. It's kind of off the radar right now, but still open source.

The other place I've seen it used is the Matplotlib package:

http://matplotlib.sourceforge.net/backends.html#Agg

I see no mention of a general purpose Agg wrapper, but both matplotlib and chaco use agg with wxPython.

-Chris

Kevin Altis wrote:

You also might want to check out antigrain graphics:

http://www.antigrain.com/

Oh my, for some reason I had never looked at anti-grain geometry. Wow! Ook, me want now! There seems to be a conflict on the license with doing a wrapper and including it in wxWidgets, but perhaps the commercial use clause could be modified. wxWidgets needs something like this big time.

I tried figuring out the relation to Chaco, but due to the the scipy.org site construction and numerous apparently out-of-date pages I can't figure it out. Anyway, I would like to find out more, especially if any of the wx-dev people have already talked to the AAG folks.

Chaco has become an in-house project of Enthought's, hopefully temporarily. Try contacting the developers directly. If you can't find them, let me know. I"d also try to find out who's doing it for Matplotlib.

A wxAggDC would be great! There is a problem, however. Agg uses floating point coordinates as input, as it does "sub pixel" drawing. This would make it a trick to integrate as a wxDC in C++, as I think all the wxDC calls are defined to take integers. I'm not enough of a C++ guy to know how hard it would be to adapt to that. It would be nice to figure it out, as we've discussed on this list, all drawing is headed in that direction in future OSes and GUI environments.

As just a wxPython widget, a wxAggDC should work, as I think it was decided to allow all DC methods to take Floats (and internally truncate), so a wxAggDC could work fine, it just wouldn't be a subclass of wxDC.

-Chris

···

--
Christopher Barker, Ph.D.
Oceanographer
                                         
NOAA/OR&R/HAZMAT (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception

Chris.Barker@noaa.gov