Question on listmix.TextEditMixin

Hi, i have a custom listCtrl like:

class AbbListCtrl(wx.ListCtrl, listmix.ListCtrlAutoWidthMixin, listmix.TextEditMixin):
    def __init__(self, parent, ID, *args,**kwds):
        wx.ListCtrl.__init__(self, parent, ID, *args,**kwds)
        listmix.ListCtrlAutoWidthMixin.__init__(self)
        listmix.TextEditMixin.__init__(self)

I added 2 columns to this ctrl list.
Now the question: how i can retrieve all item's text from all the columns? If it is possible

Alessandro Crugnola - sephiroth

···

---------------------------------------------
Macromedia Flash Team Volunteer
http://www.macromedia.com/go/team
Flash && PHP developer
alessandro@sephiroth.it

*relax with SEPY http://www.sf.net/projects/sepy
---------------------------------------------

Alessandro Crugnola *sephiroth* wrote:

Hi, i have a custom listCtrl like:

class AbbListCtrl(wx.ListCtrl, listmix.ListCtrlAutoWidthMixin, listmix.TextEditMixin):
    def __init__(self, parent, ID, *args,**kwds):
        wx.ListCtrl.__init__(self, parent, ID, *args,**kwds)
        listmix.ListCtrlAutoWidthMixin.__init__(self)
        listmix.TextEditMixin.__init__(self)

I added 2 columns to this ctrl list.
Now the question: how i can retrieve all item's text from all the columns? If it is possible

You'll have to iterate each item/column and use

  item = self.GetItem(itemId, col)
  text = item.GetText()

···

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

Thanks a lot!

Alessandro Crugnola - sephiroth

···

---------------------------------------------
Macromedia Flash Team Volunteer
http://www.macromedia.com/go/team
Flash && PHP developer
alessandro@sephiroth.it

*relax with SEPY http://www.sf.net/projects/sepy
---------------------------------------------

::-----Messaggio originale-----
::Da: Robin Dunn [mailto:robin@alldunn.com]
::Inviato: martedì 29 marzo 2005 22.43
::a: wxPython-users@lists.wxwidgets.org
::Oggetto: Re: [wxPython-users] Question on listmix.TextEditMixin
::
::Alessandro Crugnola *sephiroth* wrote:
::> Hi, i have a custom listCtrl like:
::>
::> class AbbListCtrl(wx.ListCtrl,
::listmix.ListCtrlAutoWidthMixin, listmix.TextEditMixin):
::> def __init__(self, parent, ID, *args,**kwds):
::> wx.ListCtrl.__init__(self, parent, ID, *args,**kwds)
::> listmix.ListCtrlAutoWidthMixin.__init__(self)
::> listmix.TextEditMixin.__init__(self)
::>
::>
::> I added 2 columns to this ctrl list.
::> Now the question: how i can retrieve all item's text from
::all the columns? If it is possible
::
::You'll have to iterate each item/column and use
::
:: item = self.GetItem(itemId, col)
:: text = item.GetText()
::
::--
::Robin Dunn
::Software Craftsman
::http://wxPython.org Java give you jitters? Relax with wxPython!
::
::
::---------------------------------------------------------------------
::To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
::For additional commands, e-mail:
::wxPython-users-help@lists.wxwidgets.org
::