(self, text)
| 432 | # ------------------------------------------------------------------ |
| 433 | |
| 434 | def sanitize_text(self, text): |
| 435 | if not text: |
| 436 | return text |
| 437 | replacements = { |
| 438 | '\u2018': "'", '\u2019': "'", '\u201c': '"', '\u201d': '"', |
| 439 | '\u2013': '-', '\u2014': '-', '\u2026': '...', |
| 440 | } |
| 441 | for old, new in replacements.items(): |
| 442 | text = text.replace(old, new) |
| 443 | return text |
| 444 | |
| 445 | def draw_icon_scaled(self, x, y, w, h, icon_name): |
| 446 | icon_path = self.shared_data.static_images.get(icon_name) |