source/client/LiverpoolButtons.py
def CreateButtons(hand_view, num_players=1):
    hand_view.num_players = num_players
    """This creates the buttons and text used for game. """
    hand_view.draw_pile = ClickImg(UIC.Back_Img, 10, 25, UIC.Back_Img.get_width(), UIC.Back_Img.get_height(), 0)
    hand_view.ready_yes_btn = \
        Btn.Button(UIC.White, (UIC.Disp_Width - 150), (UIC.Disp_Height - 70), 125, 25, text='Ready:YES')
    hand_view.ready_color_idx = 2  # color of outline will be: UIC.outline_colors(ready_color_idx)
    hand_view.ready_no_btn = \
        Btn.Button(UIC.White, (UIC.Disp_Width - 150), (UIC.Disp_Height - 30), 125, 25, text='Ready:NO')
    hand_view.not_ready_color_idx = 6  # color of outline will be: UIC.outline_colors(ready_color_idx)
    hand_view.round_indicator_xy = ((UIC.Disp_Width - 100), (UIC.Disp_Height - 20))
    hand_view.sort_status_btn = Btn.Button(UIC.White, 850, 25, 275, 20, text=' sort by status ')
    hand_view.sort_suit_al_btn = Btn.Button(UIC.White, 850, 55, 165, 20, text=' by suit (Aces=1) ')
    hand_view.sort_al_btn = Btn.Button(UIC.White, 850, 85, 165, 20, text=' by  no. (Aces=1) ')
    hand_view.sort_suit_ah_btn = Btn.Button(UIC.White, 1025, 55, 100, 20, text=' (Aces high)')
    hand_view.sort_ah_btn = Btn.Button(UIC.White, 1025, 85, 100, 20, text=' (Aces high)')
    hand_view.assign_cards_btns = [[]]  # list of card groups (each group is a set or run) for each player.
    hand_view.clear_prepared_cards_btn = Btn.Button(UIC.White, 320, 53, 225, 25, text='Clear prepared cards')
    hand_view.clear_selected_cards_btn = Btn.Button(UIC.White, 200, 90, 225, 25, text='Clear selected cards')
    hand_view.play_prepared_cards_btn = Btn.Button(UIC.White, 600, 53, 225, 25, text='Play prepared cards')
    hand_view.discard_action_btn = Btn.Button(UIC.Bright_Red, 190, 25, 100, 25, text='discard')
    hand_view.heart_btn = Btn.Button(UIC.White, 10, (UIC.Disp_Height - 30), 25, 25, text=str(u"\u2665"))
    # do not need discard pile at beginning of game, but do need initialize pickup_pile_sz and _outline
    hand_view.pickup_pile_sz = 0
    hand_view.pickup_pile_outline = UIC.outline_colors[0]
    return
This creates the buttons and text used for game. 
This creates the buttons and text used for game.
This creates the buttons and text used for game .
def CreateButtons(hand_view, num_players=1):
    hand_view.num_players = num_players
    hand_view.draw_pile = ClickImg(UIC.Back_Img, 10, 25, UIC.Back_Img.get_width(), UIC.Back_Img.get_height(), 0)
    hand_view.ready_yes_btn = \
        Btn.Button(UIC.White, (UIC.Disp_Width - 150), (UIC.Disp_Height - 70), 125, 25, text='Ready:YES')
    hand_view.ready_color_idx = 2  
    hand_view.ready_no_btn = \
        Btn.Button(UIC.White, (UIC.Disp_Width - 150), (UIC.Disp_Height - 30), 125, 25, text='Ready:NO')
    hand_view.not_ready_color_idx = 6  
    hand_view.round_indicator_xy = ((UIC.Disp_Width - 100), (UIC.Disp_Height - 20))
    hand_view.sort_status_btn = Btn.Button(UIC.White, 850, 25, 275, 20, text=' sort by status ')
    hand_view.sort_suit_al_btn = Btn.Button(UIC.White, 850, 55, 165, 20, text=' by suit (Aces=1) ')
    hand_view.sort_al_btn = Btn.Button(UIC.White, 850, 85, 165, 20, text=' by  no. (Aces=1) ')
    hand_view.sort_suit_ah_btn = Btn.Button(UIC.White, 1025, 55, 100, 20, text=' (Aces high)')
    hand_view.sort_ah_btn = Btn.Button(UIC.White, 1025, 85, 100, 20, text=' (Aces high)')
    hand_view.assign_cards_btns = [[]]  
    hand_view.clear_prepared_cards_btn = Btn.Button(UIC.White, 320, 53, 225, 25, text='Clear prepared cards')
    hand_view.clear_selected_cards_btn = Btn.Button(UIC.White, 200, 90, 225, 25, text='Clear selected cards')
    hand_view.play_prepared_cards_btn = Btn.Button(UIC.White, 600, 53, 225, 25, text='Play prepared cards')
    hand_view.discard_action_btn = Btn.Button(UIC.Bright_Red, 190, 25, 100, 25, text='discard')
    hand_view.heart_btn = Btn.Button(UIC.White, 10, (UIC.Disp_Height - 30), 25, 25, text=str(u"\u2665"))
    hand_view.pickup_pile_sz = 0
    hand_view.pickup_pile_outline = UIC.outline_colors[0]
    return
def CreateButtons ( hand_view , num_players = 1 ) : hand_view . num_players = num_players hand_view . draw_pile = ClickImg ( UIC . Back_Img , 10 , 25 , UIC . Back_Img . get_width ( ) , UIC . Back_Img . get_height ( ) , 0 ) hand_view . ready_yes_btn = Btn . Button ( UIC . White , ( UIC . Disp_Width - 150 ) , ( UIC . Disp_Height - 70 ) , 125 , 25 , text = 'Ready:YES' ) hand_view . ready_color_idx = 2 hand_view . ready_no_btn = Btn . Button ( UIC . White , ( UIC . Disp_Width - 150 ) , ( UIC . Disp_Height - 30 ) , 125 , 25 , text = 'Ready:NO' ) hand_view . not_ready_color_idx = 6 hand_view . round_indicator_xy = ( ( UIC . Disp_Width - 100 ) , ( UIC . Disp_Height - 20 ) ) hand_view . sort_status_btn = Btn . Button ( UIC . White , 850 , 25 , 275 , 20 , text = ' sort by status ' ) hand_view . sort_suit_al_btn = Btn . Button ( UIC . White , 850 , 55 , 165 , 20 , text = ' by suit (Aces=1) ' ) hand_view . sort_al_btn = Btn . Button ( UIC . White , 850 , 85 , 165 , 20 , text = ' by  no. (Aces=1) ' ) hand_view . sort_suit_ah_btn = Btn . Button ( UIC . White , 1025 , 55 , 100 , 20 , text = ' (Aces high)' ) hand_view . sort_ah_btn = Btn . Button ( UIC . White , 1025 , 85 , 100 , 20 , text = ' (Aces high)' ) hand_view . assign_cards_btns = [ [ ] ] hand_view . clear_prepared_cards_btn = Btn . Button ( UIC . White , 320 , 53 , 225 , 25 , text = 'Clear prepared cards' ) hand_view . clear_selected_cards_btn = Btn . Button ( UIC . White , 200 , 90 , 225 , 25 , text = 'Clear selected cards' ) hand_view . play_prepared_cards_btn = Btn . Button ( UIC . White , 600 , 53 , 225 , 25 , text = 'Play prepared cards' ) hand_view . discard_action_btn = Btn . Button ( UIC . Bright_Red , 190 , 25 , 100 , 25 , text = 'discard' ) hand_view . heart_btn = Btn . Button ( UIC . White , 10 , ( UIC . Disp_Height - 30 ) , 25 , 25 , text = str ( u"\u2665" ) ) hand_view . pickup_pile_sz = 0 hand_view . pickup_pile_outline = UIC . outline_colors [ 0 ] return
This creates the buttons and text used for game.
This creates the buttons and text used for game .
"""This creates the buttons and text used for game. """ # color of outline will be: UIC.outline_colors(ready_color_idx) # color of outline will be: UIC.outline_colors(ready_color_idx) # list of card groups (each group is a set or run) for each player. # do not need discard pile at beginning of game, but do need initialize pickup_pile_sz and _outline
hand_view
num_players