Пример #1
0
 def formation_list_btn_func():
     generic_formation = {"style": "Generic",
                          "name": "Generic",
                          "description": "Generic formation for picking players to be used with list of formations.",
                          "num_links": 17,
                          "num_defenders": 4,
                          "num_midfielders": 4,
                          "num_attackers": 2,
                          "positions": {
                              "11": {"index": 0, "symbol": "11", "name": "Spot 11", "links": []},
                              "10": {"index": 1, "symbol": "10", "name": "Spot 10", "links": []},
                              "9": {"index": 2, "symbol": "9", "name": "Spot 9", "links": []},
                              "8": {"index": 3, "symbol": "8", "name": "Spot 8", "links": []},
                              "7": {"index": 4, "symbol": "7", "name": "Spot 7", "links": []},
                              "6": {"index": 5, "symbol": "6", "name": "Spot 6", "links": []},
                              "5": {"index": 6, "symbol": "5", "name": "Spot 5", "links": []},
                              "4": {"index": 7, "symbol": "4", "name": "Spot 4", "links": []},
                              "3": {"index": 8, "symbol": "3", "name": "Spot 3", "links": []},
                              "2": {"index": 9, "symbol": "2", "name": "Spot 2", "links": []},
                              "1": {"index": 10, "symbol": "1", "name": "Spot 1", "links": []}}}
     win_pick_formation.become_target()
     AssignPlayers.open_assign_players_window(win_pick_formation.x, win_pick_formation.y,
                                              db_dict, generic_formation, win_pick_formation)
     win_pick_formation.hide()
Пример #2
0
 def formation_btn_func(formation):
     win_pick_formation.become_target()
     AssignPlayers.open_assign_players_window(win_pick_formation.x, win_pick_formation.y,
                                              db_dict, formation, win_pick_formation)
     win_pick_formation.hide()