I having a problem with making a Button in Pygame [duplicate]

  button, pygame, python

So I had an idea of a project today but when I started to do it I noticed I need to make a button which I have no idea how to make with python’s pygame library. Can anyone explain to me how to make a button in pygame and how to detect if a user has pressed it?

Source: Python Questions