def sort_btn_func(): # Delete results del settings['messages']['results'][:] # Set type argument attr_type = 'player_sort' # Open new window and close current window win_pick_player.hide() AddAttribute.open_attribute_window(win_pick_player.x, win_pick_player.y, db_dict, attr_dict, attr_list, attr_type, settings)
def judging_players_edit_btn_func(): save_settings() attr_dict = {} attr_list = settings['player_sort_attributes'] attr_type = 'player_sort' attribute_settings = {'window': 'ultimate_player_judging', 'file_name': team_list_name_tf.value, 'roster': roster, 'input_formation': input_formation, 'prev_window_value': win_previous} AddAttribute.open_attribute_window(win_ultimate_teams.x, win_ultimate_teams.y, db_dict, attr_dict, attr_list, attr_type, attribute_settings) win_ultimate_teams.hide()
def sort_btn_func(): # Delete results del settings['messages']['results'][:] attr_type = '' if settings['edit_subject'] == 'players': attr_type = 'player_sort' elif settings['edit_subject'] == 'formations': attr_type = 'formation_sort' elif settings['team_subject'] == 'teams': attr_type = 'player_sort' else: print "Invalid edit_subject settings." # Open new window and close current window win_edit.hide() AddAttribute.open_attribute_window(win_edit.x, win_edit.y, db_dict, attr_dict, attr_list, attr_type, settings)
def sort_btn_func(): # Delete results del settings["messages"]["results"][:] # Set type argument attr_type = "" if settings["mode"] == "players": attr_type = "player_sort" elif settings["mode"] == "formations": attr_type = "formation_sort" elif settings["mode"] == "teams": attr_type = "team_sort" else: print "Invalid mode." # Open new window and close current window win_search.hide() AddAttribute.open_attribute_window( win_search.x, win_search.y, db_dict, attr_dict, attr_list, attr_type, settings )