Пример #1
0
 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
Пример #2
0
 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
Пример #3
0
 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
Пример #4
0
 def draw(self):
     surface = BasicFrame.draw(self)
     self.blit_borders_on(surface)
     return surface
Пример #5
0
 def draw(self):
     surface = BasicFrame.draw(self)
     self.blit_borders_on(surface)
     return surface