def change_text(self, text, btm):
     dims = (self.srf.get_width(), self.srf.get_height())
     ui_cover_up(self.location, dims, btm)
     self.srf = self.fnt.render(text, 1, self.color)
     self.update()
 def update_element(self, img_path, btm):
     dims = (self.srf.get_height(), self.srf.get_width())
     ui_cover_up(self.location, dims, btm)
     self.srf = image.load(img_path).convert_alpha()
     self.update()