Images on grid column labels

Hello,

I'm developing a database application in wxpython and I use Grid control to diplay DB tables.
If user clicks on column label, data is being sorted by this column, and additionaly I'd like to display some kind of arrow pointing accordingly down or up in column label. I've searched in demo, in Internet but without success.
Is it possible anyway?

P.S. There is an application (amule) which uses wxwidgets and actually has required feature, but it is written in c++.

Thanks.

···

--
~syhpoon

Max E. Kuznecov wrote:

Hello,

I'm developing a database application in wxpython and I use Grid
control to diplay DB tables. If user clicks on column label, data is
being sorted by this column, and additionaly I'd like to display some
kind of arrow pointing accordingly down or up in column label. I've
searched in demo, in Internet but without success. Is it possible
anyway?

Yes. I remember that in the past (or I had read it somewhere) someone
post a similar class the did exactly the opposite, so it only draw the
arrow, but it didn't sort.
Try to find it into the list archive, or wait until I'll find it on my
hard disk :slight_smile:

Michele

PyPE does this in its find in files results (download the source from
PyPE (Python Programmers Editor) download | SourceForge.net , in plugins/findinfiles.py, the FoundTable
class).

- Josiah

···

"Max E. Kuznecov" <mek@mek.uz.ua> wrote:

Hello,

I'm developing a database application in wxpython and I use Grid control
to diplay DB tables.
If user clicks on column label, data is being sorted by this column, and
additionaly I'd like to display some kind of arrow pointing accordingly
down or up in column label. I've searched in demo, in Internet but
without success.
Is it possible anyway?

P.S. There is an application (amule) which uses wxwidgets and actually
has required feature, but it is written in c++.

Josiah Carlson escribio:

PyPE does this in its find in files results (download the source from
PyPE (Python Programmers Editor) download | SourceForge.net , in plugins/findinfiles.py, the FoundTable
class).

Thanks, I'll take a look.

···

--
~syhpoon