Пример #1
0
def offlinemenu():
    while True:
        print '\nChoose:'
        print 'a - analyze pkm file'
        print 'o - continue to online mode'
        print 'c - convert .pkm files to newer gens'
        print 'q - quit\n'
        print '\nPlease type your option, and press Enter\n'
        choice = raw_input().strip().lower()

        if choice.startswith('a'):
            clear()
            statana()
        elif choice.startswith('o'):
            clear()
            print '\nContinuing to online menu...\n\n'
            break
        elif choice.startswith('c'):
            threetofour()
        elif choice.startswith('q'):
            clear()
            print 'Quitting program'
            cleanexit()
        else:
            print 'Invalid option, please try again.'
            continue
        print 'Returning to menu...\n'
Пример #2
0
def convertmenu():
    while True:
        print '\nChoose a conversion option:'
        print '1 - convert 3rd gen Pokemon file to 4th gen .pkm'
        print '2 - convert 3rd gen Pokemon file to 5th gen .pkm'
        print '3 - convert 4th gen .pkm to 5th gen .pkm'
        print 'r - return to main menu'
        print 'q - quit'
        number = raw_input().strip().lower()

        if number.startswith('1'):
            clear()
            threetofour()
        elif number.startswith('2'):
            clear()
            threetofive()
        elif number.startswith('3'):
            clear()
            fourtofive()
        elif number.startswith('r'):
            clear()
            break
        elif number.startswith('q'):
            clear()
            print 'Quitting program'
            cleanexit()
        else:
            print 'Invalid option, try again'
            continue
        print 'Returning to conversion menu...'
Пример #3
0
def convertmenu():
    while True:
        print '\nChoose a conversion option:'
        print '1 - convert 3rd gen Pokemon file to 4th gen .pkm'
        print '2 - convert 3rd gen Pokemon file to 5th gen .pkm'
        print '3 - convert 4th gen .pkm to 5th gen .pkm'
        print 'r - return to main menu'
        print 'q - quit'
        number = raw_input().strip().lower()

        if number.startswith('1'): threetofour()
        elif number.startswith('2'): threetofive()
        elif number.startswith('3'): fourtofive()
        elif number.startswith('r'): break
        elif number.startswith('q'):
            print 'Quitting program'
            exit()
        else:
            print 'Invalid option, try again'
            continue

        print 'Returning to conversion menu...'
Пример #4
0
        print 'Returning to conversion menu...'

while True:
    print '\nChoose:'
    print 'a - analyze pkm file'
    print 'o - continue to online mode'
    print 'c - convert .pkm files to newer gens'
    print 'q - quit\n'
    print '\nPlease type your option, and press Enter\n'
    choice = raw_input().strip().lower()

    if choice.startswith('a'): statana()
    elif choice.startswith('o'):
        print '\nContinuing to online menu...\n\n'
        break
    elif choice.startswith('c'): threetofour()
    elif choice.startswith('q'):
        print 'Quitting program'
        exit()
    else:
        print 'Invalid option, please try again.'
        continue
    
    print 'Returning to menu...\n'

initServ()
sleep(1)

def sendmenu():
    while True:
        print '\nChoose an option to send Pokemon:'