(self)
| 225 | self.toFadeOut.add(self.config_text) |
| 226 | |
| 227 | def resize_rectangle(self): |
| 228 | if ( |
| 229 | self.last_element.get_bottom()[1] - 3 * self.last_element.height |
| 230 | > self.project_root.get_bottom()[1] |
| 231 | ): |
| 232 | return |
| 233 | new_rect = m.Rectangle( |
| 234 | width=rect.width, |
| 235 | height=rect.height + 2 * self.last_element.height, |
| 236 | color=rect.color, |
| 237 | ) |
| 238 | new_rect.align_to(rect, m.UP) |
| 239 | self.toFadeOut.remove(rect) |
| 240 | self.toFadeOut.add(new_rect) |
| 241 | if settings.animate: |
| 242 | self.recenter_frame() |
| 243 | self.scale_frame() |
| 244 | self.play(m.ReplacementTransform(rect, new_rect)) |
| 245 | else: |
| 246 | self.remove(rect) |
| 247 | self.add(new_rect) |
| 248 | self.project_root = new_rect |
| 249 | |
| 250 | def render_remote_data(self): |
| 251 | for i, section in enumerate(self.config.sections()): |
no test coverage detected