HF RL Explorer

Add lifecycle event handlers to toga.Window

Add lifecycle event handlers to toga.Window: a task in MiMo-V2.6-Code: MiMo-V2.6-RL Code (Harbor) (Harbor dataset). Right now a Window only lets you respond to one lifecycle event, on close . Applications frequently need to react to a window changing its focus or visibility — for example, pausing…

The task

Right now a `Window` only lets you respond to one lifecycle event, `on_close`. Applications frequently need to react to a window changing its focus or visibility — for example, pausing background work when a window is hidden, or refreshing data when it comes back to the foreground.

Part of openmodelai/MiMo-V2.6-Code.