Incorporating effects into content pane widgets?
Hello! I recently discovered TerminalTextEffects and then your TextualEffects wrapper. Amazing libraries!
I am trying to figure out how I could possibly apply a TTE effect to the content that currently exists within a Textual Static widget. (For simplicity, my TUI app is kind of like a text editor, with a file chooser on the left, the content in a middle pane, and a metadata inspector on the right. The content pane defines the static widget and then updates it according to the file selected in the chooser pane.)
It would be fun to add an effect when the content is first loaded into the content pane. But I'm not clear how this might be accomplished. In your library, the widgets seem to be standalone, like modal windows.
Any suggestions to steer me in the right direction would be greatly appreciated!
Hey @AlloriMD
If you look at widgets.py the widget starts the effect in on_mount(). I would either replicate and adapt that logic in your own on_mount or alternatively, listen for the EffectFinished event and then replace the effect widget with the static one.