- colour = wxColour(int(r * 255.0), int(g * 255.0), int(b * 255.0))
- self.buffer.SetPen(wxPen(colour, 1, wxSOLID))
- self.buffer.SetBrush(wxBrush(colour, wxSOLID))
- self.buffer.DrawRectangle((x, y),
- (self.HORIZONTAL_STEP, self.vertical_step))
+ colour = wx.Colour(int(r * 255.0), int(g * 255.0), int(b * 255.0))
+ self.buffer.SetPen(wx.Pen(colour, 1, wx.SOLID))
+ self.buffer.SetBrush(wx.Brush(colour, wx.SOLID))
+ self.buffer.DrawRectangle(x, y,
+ self.HORIZONTAL_STEP, self.vertical_step)