tagui.py
def _ready():
    """internal function to check if tagui is ready to receive instructions after init() is called"""

    global _process, _tagui_started, _tagui_id, _tagui_visual, _tagui_chrome

    if not _tagui_started:
        # print output error in calling parent function instead
        return False

    try:
        # failsafe exit if tagui process gets killed for whatever reason
        if _process.poll() is not None:
            # print output error in calling parent function instead
            _tagui_visual = False
            _tagui_chrome = False
            _tagui_started = False
            return False

        # read next line of output from tagui process live mode interface
        tagui_out = _tagui_read()

        # print to screen debug output that is saved to tagui_python.log
        if debug():
            sys.stdout.write(tagui_out); sys.stdout.flush()

        # check if tagui live mode is listening for inputs and return result
        if tagui_out.strip().startswith('[TAGUI][') and tagui_out.strip().endswith('] - listening for inputs'):
            return True
        else:
            return False

    except Exception as e:
        print('[TAGUI][ERROR] - ' + str(e))
        return False
internal function to check if tagui is ready to receive instructions after init() is called
internal function to check if tagui is ready to receive instructions after init() is called
internal function to check if tagui is ready to receive instructions after init () is called
def _ready():
    global _process, _tagui_started, _tagui_id, _tagui_visual, _tagui_chrome
    if not _tagui_started:
        return False
    try:
        if _process.poll() is not None:
            _tagui_visual = False
            _tagui_chrome = False
            _tagui_started = False
            return False
        tagui_out = _tagui_read()
        if debug():
            sys.stdout.write(tagui_out); sys.stdout.flush()
        if tagui_out.strip().startswith('[TAGUI][') and tagui_out.strip().endswith('] - listening for inputs'):
            return True
        else:
            return False
    except Exception as e:
        print('[TAGUI][ERROR] - ' + str(e))
        return False
def _ready ( ) : global _process , _tagui_started , _tagui_id , _tagui_visual , _tagui_chrome if not _tagui_started : return False try : if _process . poll ( ) is not None : _tagui_visual = False _tagui_chrome = False _tagui_started = False return False tagui_out = _tagui_read ( ) if debug ( ) : sys . stdout . write ( tagui_out ) ; sys . stdout . flush ( ) if tagui_out . strip ( ) . startswith ( '[TAGUI][' ) and tagui_out . strip ( ) . endswith ( '] - listening for inputs' ) : return True else : return False except Exception as e : print ( '[TAGUI][ERROR] - ' + str ( e ) ) return False
internal function to check if tagui is ready to receive instructions after init() is called
internal function to check if tagui is ready to receive instructions after init () is called
"""internal function to check if tagui is ready to receive instructions after init() is called""" # print output error in calling parent function instead # failsafe exit if tagui process gets killed for whatever reason # print output error in calling parent function instead # read next line of output from tagui process live mode interface # print to screen debug output that is saved to tagui_python.log # check if tagui live mode is listening for inputs and return result