def __init__(self, position, text_lines, font, fg=(0, 0, 0), bg=None, border_width=0, border_color=(0, 0, 0), bold=False, italic=False, underline=False, line_spacing=3, padding=5):
    pygame.sprite.Sprite.__init__(self)
    self.position = position
    self.font = font
    self.fg = fg
    self.bg = bg
    self.border_width = border_width
    self.border_color = border_color
    self.line_spacing = line_spacing
    self.padding = padding
    self.font.set_bold(bold)
    self.font.set_italic(italic)
    self.font.set_underline(underline)
    self.rect = None
    self.image = None
    self.text_lines = text_lines
    self.update()
def __init__(self, position, text_lines, font, fg=(0, 0, 0), bg=None, border_width=0, border_color=(0, 0, 0), bold=False, italic=False, underline=False, line_spacing=3, padding=5):
    pygame.sprite.Sprite.__init__(self)
    self.position = position
    self.font = font
    self.fg = fg
    self.bg = bg
    self.border_width = border_width
    self.border_color = border_color
    self.line_spacing = line_spacing
    self.padding = padding
    self.font.set_bold(bold)
    self.font.set_italic(italic)
    self.font.set_underline(underline)
    self.rect = None
    self.image = None
    self.text_lines = text_lines
    self.update()