GridBagSizer Gantt

Chris Stone wrote:

Noble wxpython users--
I'm working on a resource scheduling GUI (Gantt chart) app. Have chosen GridBagSizer because the spanning feature should prove useful. Also will need DnD. I want to be able to resize the display to accomodate time spans of minutes to years...rather than messing with the span of each of 1000s of items in the grid, would seem better to simply change the default column sizes and avoid autolayout (it's OK if mostof the info in the cells is cut off when the the column gets small on large time scales). Yet, GBS seems to lack a facility to change the default column size. Is there one?
You gurus out there could easily tell...have I chosen the best approach?

I don't think that using a sizer for this is a very good way to go about it. Sizers are made for positioning and sizing window items, but to do a gantt chart with windows means having hundreds or perhaps thousands of them on the panel, and that could lead to way too much overhead not to mention resource starvation on platforms like Win98.

It would be much better to draw the elements of the gantt chart onto a single window or use something like OGL or FloatCanvas to give you a higher level ability to deal with shape objects that are not independent windows.

ยทยทยท

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