'Enter the Tkinter mainloop.  This function must be called if
this demo is created from a non-interactive program (e.g.
from a secript); otherwise, the demo will close as soon as
the script completes.'

def mainloop(self, *args, **kwargs):

    if in_idle():
        return
    self.top.mainloop(*args, **kwargs)
