def migrate_window(bg):
ret = {}<EOL>for k, v in bg.items():<EOL><INDENT>if k == '<STR_LIT:type>':<EOL><INDENT>v = WIN_MAP[v]._meta.name<EOL><DEDENT>elif k == '<STR_LIT>':<EOL><INDENT>menus = v['<STR_LIT>']<EOL>v = [migrate_control(menu) for menu in menus]<EOL><DEDENT>elif k == '<STR_LIT>':<EOL><INDENT>v = [migrate_control(comp) for comp in v]<EOL><DEDENT>else:<EOL><INDENT>k = SPEC_MAP['<STR_LIT>'].get(k, k)<EOL><DEDENT>ret[k] = v<EOL><DEDENT>return ret<EOL>
Take a pythoncard background resource and convert to a gui2py window