Ver Mensaje Individual
  #4 (permalink)  
Antiguo 24/06/2012, 05:46
serrallonga25
 
Fecha de Ingreso: enero-2011
Mensajes: 17
Antigüedad: 13 años, 3 meses
Puntos: 2
Respuesta: wxpyhon wx.ListCtrl Selected Row

Hola

Ya encontré la solución.

Se le ha de poner el foco al listctrl después de seleccionar.

Código Python:
Ver original
  1. def add_line(self, event):
  2.         line = "Line %s" % self.index
  3.         self.list_ctrl.InsertStringItem(self.index, line)
  4.         self.list_ctrl.SetStringItem(self.index, 1, "01/19/2010")
  5.         self.list_ctrl.SetStringItem(self.index, 2, "USA")
  6.         self.list_ctrl.Select(self.index)
  7.         self.list_ctrl.SetFocus()

Gracias por todo