示例#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