johnf wrote:
> I'd like to change the background color of a cell within a grid.  If I can't 
> do that I like to change the text color.
> 
> I have tried:
> SetCellBackgroundColor(1,1,wx.Colour(0,255,0,0)) without success.

class MyGrid(dabo.ui.dGrid):
   ...
   def dynBackground(self):
     if self.CurrentRow == 1 and self.CurrentColumn == 1:
       return "red"
     return None

   def initProperties(self):
     ...
     self.DynamicBackColor = self.dynBackground

Paul


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/[EMAIL PROTECTED]

Reply via email to