Doubt with wx.ListCtrl

C

carlosperezs

I have programmed this code:


# self ist a panel
self.partListCtrlMarks = wx.ListCtrl(self.panel, -1, style = wx.LC_REPORT)

self.Bind(wx.EVT_LIST_ITEM_SELECTED,self.OnSelectedItemList,self.partListCtrlMarks)
vs.Add(self.partListCtrlMarks, 1, wx.EXPAND | wx.ALL, 4)

self.partListCtrlMarks.InsertColumn(0, "Name")
self.partListCtrlMarks.InsertColumn(1, "Note")

self.partListCtrlMarks.SetColumnWidth(1, 80)

later I have this...

idx = self.partListCtrlMarks.GetItemCount()
self.partListCtrlMarks.InsertStringItem(idx, "Can embestido")
self.partListCtrlMarks.SetStringItem(idx, 1, "De como a cabra smbiste o can")

With self.partListCtrl.GetItemText(idx) I get only "Can embestido" which is in
first column. My doubt is: How can I get the second column text "De como a
cabra smbiste o can".

--oOo-----------------------------------------------------------------oOo--

Servicio de acceso ó correo electrónico vía web da Universidade de Vigo
Servicio de acceso al correo electrónico vía web de la Universidad de Vigo

Servicios Informáticos [ http://si.uvigo.es ]
Universidade de Vigo [ http://www.uvigo.es ]

URL: https://correoweb.uvigo.es
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

No members online now.

Forum statistics

Threads
473,990
Messages
2,570,211
Members
46,796
Latest member
SteveBreed

Latest Threads

Top