d = VDict() d[] = "folder" d[] = "tar" d[] = "disk" popup("select a icon") img = capture() result = d[img] if result: popup(result[0]) else: popup("unknown")