Button class only allows for displaying a label on the button. If this is a little too plain for the needs of your application, you're in luck. wxPython also provides a wide variety of other types of buttons that provide a different look and feel, as well as extended functionality. This recipe will introduce a number of the other button controls that are available in wxPython.
Version Notice: The
agw package and
GradientButton class used in the following code are only available in wxPython 22.214.171.124 and later.
To see what these different
Buttons look like and what they can do, we will make a simple
Panel with some different examples of these additional button classes:
import wx import ...