def waittillguiexist(self, window_name, object_name='<STR_LIT>',<EOL>guiTimeOut=<NUM_LIT:30>, state='<STR_LIT>'):
timeout = <NUM_LIT:0><EOL>while timeout < guiTimeOut:<EOL><INDENT>if self.guiexist(window_name, object_name):<EOL><INDENT>return <NUM_LIT:1><EOL><DEDENT>time.sleep(<NUM_LIT:1>)<EOL>timeout += <NUM_LIT:1><EOL><DEDENT>return <NUM_LIT:0><EOL>
Wait till a window or component exists.

@param window_name: Window name to look for, either full name,
LDTP's name convention, or a Unix glob.
@type window_name: string
@param object_name: Object name to look for, either full name,
LDTP's name convention, or a Unix glob.
@type object_name: string
@param guiTimeOut: Wait timeout in seconds
@type guiTimeOut: integer
@param state: Object state used only when object_name is provided.
@type object_name: string

@return: 1 if GUI was found, 0 if not.
@rtype: integer