Example #1
0
def create_web_app_population(adict, how_many_apps, images_per_app):
    """
    Creates web_apps for Linux, Windows, and Mac. (from scaffolding)
    Populates web_apps with png images and corresponding data.
    """
    version_app = adict["version"]
    os_list = ['win', 'mac', 'linux']
    create_web_apps_win.deploy_scaffolding(version_app, how_many_apps)
    create_web_apps_mac.deploy_scaffolding(version_app, how_many_apps)
    create_web_apps_linux.deploy_scaffolding(version_app, how_many_apps)
    proc_path = adict["out_path"]
    dict_image_p = impcg.image_path_chunk_grabber(images_per_app, proc_path)
    for w_os in os_list:
        for number in range(len(dict_image_p.keys())):
            part = "P{}".format(number+1)
            popu.populate_web_app(part, dict_image_p[part], w_os, adict)
            v_c.replace_view(part, dict_image_p[part][0], w_os)
    return None