Doubt with wx.ListCtrl

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • carlosperezs@alumnos.uvigo.es

    #1

    Doubt with wx.ListCtrl

    I have programmed this code:


    # self ist a panel
    self.partListCt rlMarks = wx.ListCtrl(sel f.panel, -1, style = wx.LC_REPORT)

    self.Bind(wx.EV T_LIST_ITEM_SEL ECTED,self.OnSe lectedItemList, self.partListCt rlMarks)
    vs.Add(self.par tListCtrlMarks, 1, wx.EXPAND | wx.ALL, 4)

    self.partListCt rlMarks.InsertC olumn(0, "Name")
    self.partListCt rlMarks.InsertC olumn(1, "Note")

    self.partListCt rlMarks.SetColu mnWidth(1, 80)

    later I have this...

    idx = self.partListCt rlMarks.GetItem Count()
    self.partListCt rlMarks.InsertS tringItem(idx, "Can embestido")
    self.partListCt rlMarks.SetStri ngItem(idx, 1, "De como a cabra smbiste o can")

    With self.partListCt rl.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

Working...