Back in the saddle again

WELCOME BACK ROBIN!

We clearly missed you and it is great to have you
back. You are immediately present again. It’s nice to see your support
again flowing through this mailing list and save us a lot of headaches.
I agree with what others said before. Just take up with recent emails
and let anyone with unanswered questions or wanted features bring them back.

Some important things I remember quickly from the past
are:

  • Andrea’s new interesting widgets
  • the discussion that Peter Damoc
    started, is also quite interesting and might draw your attention as it raises some fundamental questions about wxPython
  • by discussing with Stefan Csomor I got the feeling that wxPython for
    Mac is based an old version of wxMac. As wxPython has bugs (try
    clicking on a selected text of a wx.stc control for example), which are
    not reproducable with wxMac. Am I right on this? If yes, it seems
    better to wait with bug reports to when the new version comes out. With
    SPE I also bumped on the instablilty of the wx.GenericDirCtrl on Mac,
    which Stefan than fixed for wxMac, but that’s also not yet in wxPython.
  • anti-aliase support (several people now started experimenting with
    aggdraw, but it seems highly inefficient) In general it would be nice
    to have a more direct communication between wxPython and eg PIL or
    wxAgg, instead of the slow and memory consuming tostring methods

Well, thanks in advance, but take your time…

Stani

···


http://pythonide.stani.be[

](http://pythonide.stani.be/manual/html/manual.html)

Take a look at what Matplotlib has done. It can use use Agg to draw, and I
think someone wrote a fairly optimized what to get the Agg image inot
wxPython.

-Chris

···

On Thursday 15 December 2005 3:55 pm, SPE Stani's Python Editor wrote:

- anti-aliase support (several people now started experimenting with
aggdraw, but it seems highly inefficient) In general it would be nice to
have a more direct communication between wxPython and eg PIL or wxAgg,
instead of the slow and memory consuming tostring methods

--
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

SPE Stani's Python Editor wrote:

Some important things I remember quickly from the past are:
- Andrea's new interesting widgets
- the discussion that Peter Damoc started, is also quite interesting and might draw your attention as it raises some fundamental questions about wxPython

What was the subject of the message thread?

- by discussing with Stefan Csomor I got the feeling that wxPython for Mac is based an old version of wxMac. As wxPython has bugs (try clicking on a selected text of a wx.stc control for example), which are not reproducable with wxMac. Am I right on this? If yes, it seems better to wait with bug reports to when the new version comes out. With SPE I also bumped on the instablilty of the wx.GenericDirCtrl on Mac, which Stefan than fixed for wxMac, but that's also not yet in wxPython.

I think that they are probably all issues that have been fixed since 2.6.1, so the next wxPython build should include them.

- anti-aliase support (several people now started experimenting with aggdraw, but it seems highly inefficient) In general it would be nice to have a more direct communication between wxPython and eg PIL or wxAgg, instead of the slow and memory consuming tostring methods

Yep, better PIL converters has been on my ToDo list for some time. If somebody else already has some knowledge of PIL or Agg internals I'd be insterested in seeing some suggestions (or code) for how to go about doing this.

···

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

Hi Robin,

Thanks for your answers. As you probably read, Chris refers to Matlib
for wrapping Agg into Python, but I didn't understand very well if
there was someone else also working on it. If yes, maybe Chris can
give more details. It would be very nice to have anti-alias for ogl or
vector drawing.

The thread Peter started was with the message "Cold shower request". I
think you can trace it with these details of the first post and it was
a very long thread:

Date: Mon, 07 Nov 2005 14:26:27 +0200
To: wxPython-users@lists.wxwidgets.org
From: "Peter Damoc" <pdamoc@gmx.net>
Subject: cold shower request
Message-ID: <op.szvd6d1mrbdvmk@media>

I think Peter's final decision was to prototype a new GUI system in wxPython.

Stani

···

--

http://pythonide.stani.be/manual/html/manual.html

> - anti-aliase support (several people now started experimenting with
> aggdraw, but it seems highly inefficient) In general it would be nice to
> have a more direct communication between wxPython and eg PIL or wxAgg,
> instead of the slow and memory consuming tostring methods

Take a look at what Matplotlib has done. It can use use Agg to draw, and I
think someone wrote a fairly optimized what to get the Agg image inot
wxPython.

It looked into it briefly and it should be possible to write a backend
for Agg that draws directly into a wxDC. You'd have to do this at the
C++ level, of course, but once you have that wxPython could expose it.
If someday I have more of this thing they call "time" I'd like to
investigate it more throughly.

···

On 12/16/05, Christopher Barker <Chris.Barker@noaa.gov> wrote:

On Thursday 15 December 2005 3:55 pm, SPE Stani's Python Editor wrote:

-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

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org

Would be great! There is a huge demand for it or maybe you can work
together with Robin. You can count on me for testing on Windows and Mac.

Stani

···

On 12/17/05, Chris Mellon arkanes@gmail.com wrote:

On 12/16/05, Christopher Barker Chris.Barker@noaa.gov wrote:

On Thursday 15 December 2005 3:55 pm, SPE Stani’s Python Editor wrote:

  • anti-aliase support (several people now started experimenting with

aggdraw, but it seems highly inefficient) In general it would be nice to
have a more direct communication between wxPython and eg PIL or wxAgg,
instead of the slow and memory consuming tostring methods

Take a look at what Matplotlib has done. It can use use Agg to draw, and I
think someone wrote a fairly optimized what to get the Agg image inot
wxPython.

It looked into it briefly and it should be possible to write a backend

for Agg that draws directly into a wxDC. You’d have to do this at the
C++ level, of course, but once you have that wxPython could expose it.
If someday I have more of this thing they call “time” I’d like to

investigate it more throughly.


http://pythonide.stani.be
http://pythonide.stani.be/screenshots

http://pythonide.stani.be/manual/html/manual.html

I hope you do. But to clarify, I'm not sure we need a "back end for Agg that
draws directly into a DC". What would be great is a DC that uses Agg. I guess
it would have to be an off screen bitmap: a wxAggMemoryDC.

What it would do is implement all the DC calls, but use Agg to do the actual
drawing directly into a "native bitmap", just like wxMemoryDC does. With my
limited knowledge of C++ and Agg, I think this could be done well. It seems
that Agg is designed to be used with virtually any binary representation of a
bitmap, it's not married to any particular bit depth, or color order, for
instance.

Anyone that wants to work on this should look at wxArt2d also, I think it uses
Agg at some level.

What we really need, in the long run, is a real Alpha channel support in wxDC.
I know that the various back-ends all of differing levels of support for
that, but it it clearly the way of the future. It would be nice to at least
support alpha in the DC interface soon, even if most DCs don't support it.
That would either mean an alpha channel in wxColor or maybe a couple methods
like: wx.DC.SetPenAlpha and wx.DC.SetBrushAlpha

If only I had the time and skills to do this!

-Chris

···

On 12/17/05, Chris Mellon <arkanes@gmail.com> wrote:
> On 12/16/05, Christopher Barker <Chris.Barker@noaa.gov> wrote:
> > On Thursday 15 December 2005 3:55 pm, SPE Stani's Python Editor wrote:
> > > - anti-aliase support (several people now started experimenting with
> > > aggdraw, but it seems highly inefficient) In general it would be nice

> > Take a look at what Matplotlib has done.
>
> It looked into it briefly and it should be possible to write a backend
> for Agg that draws directly into a wxDC. You'd have to do this at the
> C++ level, of course, but once you have that wxPython could expose it.
> If someday I have more of this thing they call "time" I'd like to
> investigate it more throughly.

--
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