Using wx.Grid to display progress bars

I needed to build a UI that is similar to eMule and other download / upload tools - a list control with a column of progress bars in it.

It took me most of the day, but I finally got what I wanted.

I've made it compatible with the wxPython demo code so it could be added there, if Robin should wish to do so.

Enjoy.

GridProgress.py (7.7 KB)

I needed to build a UI that is similar to eMule and other download /
upload tools - a list control with a column of progress bars in it.

It took me most of the day, but I finally got what I wanted.

Thanks Eli, it looks very nice! I thought I should have waited for
wx.DataViewCtrl, but there is no need :wink:

Andrea.

"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.virgilio.it/infinity77/

I’ve worked on it some
more since I posted the code and used the RendererNative class to draw
native column headers like the ones ListCtrl has. I haven’t gotten to
making it work with mouse-over and click events, a bit too much manual
work for me right now.

Let me know if you want
to see the updates.

Andrea Gavana wrote:

···

http://xoomer.virgilio.it/infinity77/

wxPython-users-unsubscribe@lists.wxwidgets.org
wxPython-users-help@lists.wxwidgets.org

Hi Eli,

I've worked on it some more since I posted the code and used the
RendererNative class to draw native column headers like the ones ListCtrl
has. I haven't gotten to making it work with mouse-over and click events, a
bit too much manual work for me right now.

Let me know if you want to see the updates.

Of course I do :smiley: . It is a very useful thing to have, at least in my
opinion. Thank you for sharing.

Andrea.

"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.virgilio.it/infinity77/

Eli Golovinsky wrote:

I've worked on it some more since I posted the code and used the RendererNative class to draw native column headers like the ones ListCtrl has. I haven't gotten to making it work with mouse-over and click events, a bit too much manual work for me right now.

Sounds like it would make a good module for the wx.lib package. (Hint, hint...)

···

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

Cool. What do I need to
do?

Robin Dunn wrote:

···

Eli
Golovinsky wrote:

I've worked on it some more since I posted

the code and used the RendererNative class to draw native column
headers like the ones ListCtrl has. I haven’t gotten to making it work
with mouse-over and click events, a bit too much manual work for me
right now.

Sounds like it would make a good module for the wx.lib package. (Hint,
hint…)

Eli Golovinsky wrote:

Cool. What do I need to do?

http://wxpython.org/codeguidelines.php

···

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