Ver Mensaje Individual
  #4 (permalink)  
Antiguo 08/03/2012, 23:01
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_RICH2
  7.         fg = wx.Colour(255,0,0)
  8.         self.status_area = wx.TextCtrl(self, -1,
  9.                                        pos=(10, 270),style=style,
  10.                                        size=(380,150))
  11.         self.status_area.SetForegroundColour(fg)
  12.         self.status_area.AppendText("blahblahhblah")
  13.  
  14. app = wx.PySimpleApp()
  15. f = F()
  16. f.Show()
  17. app.MainLoop()