コード例 #1
0
    #
    # DELETE DONATION EVENT
    #
    elif user_input == MENU_ITEM_4:
        if connect_decider:
            EventManagerDB.delete_donation_event(cursor)
            connection.commit()
        else:
            EventManagerCSV.delete_donation_event()
    #
    # LIST DONORS AND DONATION EVENTS
    #
    elif user_input == MENU_ITEM_5:
        actv_selection = 0
        while True:
            MenuManager.list_submenu(actv_selection)

            key = ord(getch())
            if key == ESC:
                user_input = 2
                clear()
            elif key == ENTER:
                user_input = actv_selection
                clear()
            elif key == SPECIALKEYSELECTOR:
                key = ord(getch())
                if key == DOWNARROW:
                    if actv_selection < 2:
                        actv_selection += 1
                    continue
                elif key == UPARROW: