show_menu module

class ui.show_menu.ShowMenu(menu_screen)

Bases: object

handling menu

Parameters

menu_screen (pygame.Surface) -- menu surface

collide(event)

check for collision

Parameters

event (pygame.Event) -- event to check (only one)

Returns

if return value == 1 => server has been selectionned if return value == 2 => client has been selectionned if return value == 4 => IP has been entered

Return type

int

draw()

draw this menu

getIpText()

return the text with has been entered into the textbox of the ip address

Returns

text

Return type

string