def draw_rimmed_box(screen, box_rect, box_color, rim_width=0, rim_color=Color('black')):
 if rim_width:
  rim_rect = Rect((box_rect.left - rim_width), (box_rect.top - rim_width), (box_rect.width + (rim_width * 2)), (box_rect.height + (rim_width * 2)))
  pygame.draw.rect(screen, rim_color, rim_rect)
 pygame.draw.rect(screen, box_color, box_rect)

def draw_rimmed_box ( screen , box_rect , box_color , rim_width = 0 , rim_color = Color ( 'black' ) ) : if rim_width : rim_rect = Rect ( ( box_rect . left - rim_width ) , ( box_rect . top - rim_width ) , ( box_rect . width + ( rim_width * 2 ) ) , ( box_rect . height + ( rim_width * 2 ) ) ) pygame . draw . rect ( screen , rim_color , rim_rect ) pygame . draw . rect ( screen , box_color , box_rect )
draw a rimmed box on the given surface .