Hi,
I need a wxPython or wx widget that behaves like ListCtrl, but can have
arbitrary widgets (eg, buttons, progress bars etc) placed into the cells.
Does such a thing exist?
I've looked through the wxPython wiki, but can't find anything.
Or, will I have to build such a widget from scratch from a GridSizer?
(No! Please, NOOOOO!)
···
--
Kind regards
David
Have a look, perhaps, at the bittorrent source code, version 4.20.x
It contains a list with progress bar.
The wxPython demo also demonstrates a list with checkboxes, I believe.
Cheers,
--Tim
···
-----Original Message-----
From: David McNab [mailto:david@rebirthing.co.nz ]
Sent: dinsdag 4 juli 2006 12:52
To: wxPython-users@lists.wxwidgets.org
Subject: [wxPython-users] need a ListCtrl which accepts arbitrary
widgets
Hi,
I need a wxPython or wx widget that behaves like ListCtrl, but can have
arbitrary widgets (eg, buttons, progress bars etc) placed into the
cells.
Does such a thing exist?
I've looked through the wxPython wiki, but can't find anything.
Or, will I have to build such a widget from scratch from a GridSizer?
(No! Please, NOOOOO!)
--
Kind regards
David
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org
Hi David,
Have you looked at Andrea's "[wxPython-users] ANN: CustomTreeCtrl For wxPython ;-)"
Maybe using it with a "flat" tree?
Werner
David McNab wrote:
···
Hi,
I need a wxPython or wx widget that behaves like ListCtrl, but can have
arbitrary widgets (eg, buttons, progress bars etc) placed into the cells.
Does such a thing exist?
I've looked through the wxPython wiki, but can't find anything.
Or, will I have to build such a widget from scratch from a GridSizer?
(No! Please, NOOOOO!)
Hello David,
I need a wxPython or wx widget that behaves like ListCtrl,
but can have arbitrary widgets (eg, buttons, progress bars
etc) placed into the cells.
Does such a thing exist?
I've looked through the wxPython wiki, but can't find anything.
I don't think such widget currently exists in wxPython. There will be (shortly?!?) a wxListView that will allow you to put progressbars and comboboxes (and maybe something else, but I am not sure) in it. I suppose it will be available in 2.7. There is something in the demo, that uses checkboxes. I wrote something like that, a ListCtrl that accepts whatever non-toplevel widget in its cells, similar to CustomTreeCtrl. However, noting that it is based on the fantastically messed up wxListCtrl API, I don't think I will share this one. You may want to try to hack CustomTreeCtrl to get what you need:
http://xoomer.alice.it/infinity77/eng/freeware.html#customtree
But I don't know how easy it will be to do it. If you find something useful, please contribute it back
Andrea.
···
_________________________________________
Andrea Gavana (gavana@kpo.kz)
Reservoir Engineer
KPDL
4, Millbank
SW1P 3JA London
Direct Tel: +44 (0) 20 717 08936
Mobile Tel: +44 (0) 77 487 70534
Fax: +44 (0) 20 717 08900
Web: http://xoomer.virgilio.it/infinity77
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Robin
July 5, 2006, 2:24am
5
David McNab wrote:
Hi,
I need a wxPython or wx widget that behaves like ListCtrl, but can have
arbitrary widgets (eg, buttons, progress bars etc) placed into the cells.
Does such a thing exist?
I've looked through the wxPython wiki, but can't find anything.
Or, will I have to build such a widget from scratch from a GridSizer?
(No! Please, NOOOOO!)
Not quite the same, but you could use a ScrolledPanel for the scrolling and a sizer to manage the layout of the controls.
···
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!