def click(self, location):
		"""Click handler will fire the button's click handler if the provided
		location x, y tuple is inside the button.
		"""
		x, y, width, height = self.rect
		mx, my = location
		if mx >= x and mx <= (x + width) and my >= y and my <= (y + height) \
			and self.click_func is not None:
			self.click_func(self)
dataset/ETHPy150Open adafruit/FreqShow/ui.py/Button.click/original