Ver Mensaje Individual
  #2 (permalink)  
Antiguo 07/03/2012, 23:47
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: color en textctrl

Código Python:
Ver original
  1. import wx
  2.  
  3. class F(wx.Frame):
  4.     def __init__(self, *args, **kw):
  5.         wx.Frame.__init__(self, None)
  6.         style = wx.TE_MULTILINE|wx.BORDER_SUNKEN|wx.TE_READONLY|wx.TE_RICH2
  7.         self.status_area = wx.TextCtrl(self, -1,
  8.                                        pos=(10, 270),style=style,
  9.                                        size=(380,150))
  10.         self.status_area.AppendText("blahblahhblah")
  11.         fg = wx.Colour(200,80,100)
  12.         at = wx.TextAttr(fg)
  13.         self.status_area.SetStyle(3, 5, at)
  14.  
  15. app = wx.PySimpleApp()
  16. f = F()
  17. f.Show()
  18. app.MainLoop()

Ejemplo sacado de aquí.