code: def button_state(self):
  		
  
  		if self.type != EventType.TABLET_PAD_BUTTON:
  			raise AttributeError(_wrong_prop.format(self.type))
  		return self._libinput.libinput_event_tablet_pad_get_button_state(
  			self._handle)
docs: The button state of the event.
  
  		For events not of type
  		:attr:`~libinput.constant.EventType.TABLET_PAD_BUTTON`, this property
  		raises :exc:`AttributeError`.
  
  		Returns:
  			~libinput.constant.ButtonState: The button state triggering
  			this event.
  		Raises:
  			AttributeError