ListCtr with widgets in rows

Dear list,

I'd need to have a ListCtrl-like widget with a column with checkboxes
(not the first column and with checkboxes only for some rows, or the
possibility to disable some checkboxes).

Moreover, is it possibile to start from a ListView and modify it to
suit my needs? Or should I stick to ListCtrl?

My environment:
Python 2.5.4
wx 2.8.9.2

Thanks a lot for any hint.

Mauro

Hi,

2009/12/14 Mauro:

Dear list,

I'd need to have a ListCtrl-like widget with a column with checkboxes
(not the first column and with checkboxes only for some rows, or the
possibility to disable some checkboxes).

There is no way to do this with wx.ListCtrl or wx.ListView. It might
be done with ObjectListView:

http://objectlistview.sourceforge.net/python/

But I have no idea as I have never used it. But can easily be done
with UltimateListCtrl, which you can grab from the wxPython SVN:

http://svn.wxwidgets.org/svn/wx/wxPython/3rdParty/AGW/

My environment:
Python 2.5.4
wx 2.8.9.2

You should upgrade to wxPython 2.8.10.1.

Andrea.

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

Hi Andrea,
I'll take a look at both classes you suggested.

Thanks a lot for your quick reply and for your contributions to wx.

Cheers,
Mauro

···

On 14 Dic, 12:10, Andrea Gavana <andrea.gav...@gmail.com> wrote:

Hi,

2009/12/14 Mauro:

> Dear list,

> I'd need to have a ListCtrl-like widget with a column with checkboxes
> (not the first column and with checkboxes only for some rows, or the
> possibility to disable some checkboxes).

There is no way to do this with wx.ListCtrl or wx.ListView. It might
be done with ObjectListView:

ObjectListView — ObjectListView v1.2 documentation

But I have no idea as I have never used it. But can easily be done
with UltimateListCtrl, which you can grab from the wxPython SVN:

http://svn.wxwidgets.org/svn/wx/wxPython/3rdParty/AGW/

> My environment:
> Python 2.5.4
> wx 2.8.9.2

You should upgrade to wxPython 2.8.10.1.

Andrea.

"Imagination Is The Only Weapon In The War Against Reality."http://xoomer.alice.it/infinity77/http://thedoomedcity.blogspot.com/

I like and often use ObjectListView, but it's just a wrapper for a
ListCtrl, You can install a checkboxes in any column, but I don't
believe you can pick and choose rows.
I don't think you can make a checkbox disabled, but you could
certainly prevent it from being checked and perhaps grey out the text
to hint at the intended idea.

Andrea's ULC is the way to go here I believe..

You should have both handy for the future in my opinion though...

Looking forward to the DataViewCtrl which I think we're getting in the
next wxpython version

- michael

···

On Dec 14, 5:36 am, Mauro <bianchi...@gmail.com> wrote:

Hi Andrea,
I'll take a look at both classes you suggested.

Thanks a lot for your quick reply and for your contributions to wx.

Cheers,
Mauro

On 14 Dic, 12:10, Andrea Gavana <andrea.gav...@gmail.com> wrote:

> Hi,

> 2009/12/14 Mauro:

> > Dear list,

> > I'd need to have a ListCtrl-like widget with a column with checkboxes
> > (not the first column and with checkboxes only for some rows, or the
> > possibility to disable some checkboxes).

> There is no way to do this with wx.ListCtrl or wx.ListView. It might
> be done with ObjectListView:

>ObjectListView — ObjectListView v1.2 documentation

> But I have no idea as I have never used it. But can easily be done
> with UltimateListCtrl, which you can grab from the wxPython SVN:

>http://svn.wxwidgets.org/svn/wx/wxPython/3rdParty/AGW/

> > My environment:
> > Python 2.5.4
> > wx 2.8.9.2

> You should upgrade to wxPython 2.8.10.1.

> Andrea.

> "Imagination Is The Only Weapon In The War Against Reality."http://xoomer.alice.it/infinity77/http://thedoomedcity.blogspot.com/