Script modules local to each window

It would be nice to have something like the global script modules, but local only to a window.

We often have multiple ways of triggering the same event, so everything just calls a global python script. For example, we have previous/next/refresh buttons that trigger some text parsing, so it’s much easier to have all three events call the same function than to copy and paste any time a change is made. Not only is it easier to keep track of functions that are specific to a window, but it avoids collisions if two windows are merged into the same project without requiring a naming convention to be established.

Thanks.

Yeah, I’d go a step farther and say it would be nice to be able to add custom functions to any component, not just windows, and be able to call them like normal functions.