AW: [wxPython] wxPyGridTableBase: problem with SetColAttr

take a look at the RowLabel and ColLabel Functions - maybe there is the answer
for your problem
bye

-----Ursprungliche Nachricht-----
Gesendet am: Montag, 25. Juni 2001 16:32

···

Von: Echeverria Rabi, Cristian Rodrigo, TRANSELEC S.A. [SMTP:cer@transelec.cl]
An: wxpython-users@lists.wxwindows.org
Cc: pgomes@ualg.pt
Betreff: RE: [wxPython] wxPyGridTableBase: problem with SetColAttr
Wichtigkeit: Hoch

I think this is :

self.SetColAttr(0,atributo)

Cristian Echeverria

-----Original Message-----
From: Paula Gomes [SMTP:pgomes@ualg.pt]
Sent: Monday, June 25, 2001 10:22 AM
To: wxpython-users@lists.wxwindows.org
Subject: [wxPython] wxPyGridTableBase: problem with SetColAttr

Hi,

Can you tell me what am I doing wrong here?

SuperTabela is a class that inherits fromwxPyGridTableBase and has the
methods defined on the demo. This works fine. But when I try to set an
attribut it simply does nothing. Not even an error message.

Here is the code I'm using. I hope it is not to wierd.

class tabelaTratarAvisos(superTabela):
def __init__(self,resultado):
  wxPyGridTableBase.__init__(self)

  self.colunas= ['Numero','Observacao','Evento que o
originou','Aceite','Corrigido']
  self.tipos= [wxGRID_VALUE_STRING,
   wxGRID_VALUE_STRING,
   wxGRID_VALUE_STRING,
   wxGRID_VALUE_BOOL,
   wxGRID_VALUE_BOOL]

  self.resultado=
  for i in range(len(resultado)):

self.resultado.append([resultado[i][0],resultado[i][1],resultado[i][2],0,0
])

  atributo= wxGridCellAttr()
  atributo.SetTextColour(wxNamedColour("RED"))
  atributo.SetReadOnly(true)
  self.SetColAttr(atributo,0)

I just want to protect the first column.

Thank you. And I'm sorry if it's a stupid question!

_______________________________________________
wxpython-users mailing list
wxpython-users@lists.wxwindows.org
http://lists.wxwindows.org/mailman/listinfo/wxpython-users

_______________________________________________
wxpython-users mailing list
wxpython-users@lists.wxwindows.org
http://lists.wxwindows.org/mailman/listinfo/wxpython-users