470,594 Members | 1,364 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,594 developers. It's quick & easy.

Doubt with wx.ListCtrl

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.OnSelecte dItemList,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

Apr 28 '06 #1
0 845

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Fabio Pliger | last post: by
3 posts views Thread by ianaré | last post: by
reply views Thread by carlosperezs | last post: by
reply views Thread by Laszlo Nagy | last post: by
8 posts views Thread by shuf | last post: by
1 post views Thread by vedrandekovic | last post: by
reply views Thread by asrekdal | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.