pygame have no bottons
so what you can do here is when ever the user press any mouse button you will get the mouse position using this pygame.mouse.get_pos()
and if the mouse pos is inside the text then you know he pressed the text
and here is example code :
import pygame,sys
from pygame.locals import *
screen=pygame.display.set_mode((1000,700))
pygame.init()
clock = pygame.time.Clock()
tx,ty=250,250
while True :
for event in pygame.event.get():
if event.type==QUIT :
pygame.quit()
quit()
if event.type== pygame.MOUSEBUTTONDOWN and event.button == 1:
mouse=pygame.mouse.get_pos()
if mouse[0]in range ( tx,tx+130) and mouse[1]in range ( ty,ty+20):
print (" you press the text ")
myfont = pygame.font.SysFont("Marlett",35)
textsurface = myfont.render(("Start game"), True, (230,230,230))
screen.blit(textsurface,(tx,ty))
pygame.display.update()
clock.tick(60)
i used in this example the tx and ty for sizes but you can use the rect its the same thing