Button Class

Buttons and other widgets are normally encapsulated into classes

The class contains functions to set up the button, to draw it, and to update its state

Example:
  buttonClass.py
  button2.py
  button3.py

A full-fledged button class might contain:


next