Tema: wxListCtrl
Ver Mensaje Individual
  #2 (permalink)  
Antiguo 13/10/2010, 10:22
Avatar de razpeitia
razpeitia
Moderador
 
Fecha de Ingreso: marzo-2005
Ubicación: Monterrey, México
Mensajes: 7.321
Antigüedad: 19 años, 1 mes
Puntos: 1360
Respuesta: wxListCtrl

Deberías de postear el código que tienes para saber con exactitud que es lo quieres, bueno dejo un codigo de ejemplo sacado de aquí pero con algunas modificaciones.

Código Python:
Ver original
  1. import wx
  2. class MyApp(wx.App):
  3.     def OnInit(self):
  4.         frame = wx.Frame(None, -1, "Hello from wxPython")
  5.  
  6.         id = wx.NewId()
  7.         self.list = wx.ListCtrl(frame, id, style=wx.LC_REPORT | wx.SUNKEN_BORDER)
  8.         self.list.Show(True)
  9.  
  10.         self.list.InsertColumn(0, "Data #1")
  11.         self.list.InsertColumn(1, "Data #2")
  12.         self.list.InsertColumn(2, "Data #3")
  13.  
  14.         # 0 will insert at the start of the list
  15.         pos = self.list.InsertStringItem(0, "hello")
  16.         # add values in the other columns on the same row
  17.         self.list.SetStringItem(pos, 1, "world")
  18.         self.list.SetStringItem(pos, 2, "!")
  19.        
  20.         pos = self.list.InsertStringItem(1, "hola")
  21.         self.list.SetStringItem(pos, 1, "mundo")
  22.         self.list.SetStringItem(pos, 2, "!")
  23.        
  24.         print self.list.GetItem(0, 1).GetText()
  25.         print self.list.GetItem(1, 1).GetText()
  26.  
  27.         frame.Show(True)
  28.         self.SetTopWindow(frame)
  29.         return True
  30.  
  31. app = MyApp(0)
  32. app.MainLoop()