def ShowWindow(self, cmdShow: int, waitTime: float = OPERATION_WAIT_TIME) -> bool:
handle = self.NativeWindowHandle<EOL>if not handle:<EOL><INDENT>control = self<EOL>while not handle:<EOL><INDENT>control = control.GetParentControl()<EOL>handle = control.NativeWindowHandle<EOL><DEDENT><DEDENT>if handle:<EOL><INDENT>ret = ShowWindow(handle, cmdShow)<EOL>time.sleep(waitTime)<EOL>return ret<EOL><DEDENT>
Get a native handle from self or ancestors until valid and call native `ShowWindow` with cmdShow.
cmdShow: int, a value in in class `SW`.
waitTime: float.
Return bool, True if succeed otherwise False.