

def get_instance(parent, gui_class):
    for children in parent.children():
        if isinstance(children, gui_class):
            return children
    return None

dataset/ETHPy150Open csaez/quicklauncher/quicklauncher/gui.py get_instance/original