def draw(self): surface = BasicFrame.draw(self) if not self.pressed: draw_rect(surface, self.dark, Rect((0, 0), self.size), self.thick) else: draw_rect(surface, self.light, Rect((0, 0), self.size), self.thick) return surface
def draw(self): surface = BasicFrame.draw(self) if self.pressed: draw_rect(surface, self.dark, Rect((0, 0), self.size), self.thick+2) elif self.hovered: draw_rect(surface, self.dark, Rect((0, 0), self.size), self.thick) return surface
def draw(self): surface = BasicFrame.draw(self) self.blit_borders_on(surface) return surface