I have problems with this method.
I have programmed this wx.Listctrl:
self.ListCtrlMa rks = wx.ListCtrl(sel f.panel, -1, style = wx.LC_REPORT)
self.Bind(wx.EV T_LIST_ITEM_SEL ECTED,self.OnSe lectedItemList, self.ListCtrlMa rks)
vs.Add(self.Lis tCtrlMarks, 1, wx.EXPAND | wx.ALL, 4)
self.ListCtrlMa rks.InsertColum n(0, "Name")
self.ListCtrlMa rks.InsertColum n(1, "Note")
self.ListCtrlMa rks.InsertColum n(2, "Film")
self.ListCtrlMa rks.InsertColum n(3, "Init")
self.ListCtrlMa rks.InsertColum n(4, "End")
self.ListCtrlMa rks.SetColumnWi dth(1, 80)
self.ListCtrlMa rks.SetColumnWi dth(2, 80)
self.ListCtrlMa rks.SetColumnWi dth(3, 40)
self.ListCtrlMa rks.SetColumnWi dth(4, 40)
later i introduced values in each column.
What i want to programm is :
- when i select the row and i press a button called "Change Name"
i wanto to can edit the Name and introduce the new value.
I tried it with:(the next code lines are in the function that is
called when the buttton "Change Name" is pressed.)
# I get the row selected index
self.currentIdx =self.ListCtrlM arks.GetNextIte m(-1,
wx.LIST_NEXT_AL L,wx.LIST_STATE _SELECTED)
self.ListCtrlMa rks.EditLabel(s elf.currentIdx)
I thought that so it would work. But does not work.
Don't let me to edit new Name Value
Thank you
--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