def WaitForIdle(self, wait_seconds):
    if (self.window is not None):
        try:
            self.window.SendMessage(self.UWM_WAIT_FOR_IDLE, wait_seconds, 0)
        except:
            pass
def WaitForIdle(self, wait_seconds):
    if (self.window is not None):
        try:
            self.window.SendMessage(self.UWM_WAIT_FOR_IDLE, wait_seconds, 0)
        except:
            pass