How do I stop auto-updating on a Display script?

Here's how:

mywindow.setAutoUpdateEnabled(false);