New multi-platform custom bitmap button

This new “multi-platform custom bitmap button”, fully designed for customization, offers a wide range of options, including:

  • Using different button shapes (round, rectangle, triangle, square, oval, etc.)
  • Selecting separate images for different button states (normal, hover, pressed, disabled)
  • Setting the label font size
  • Configuring the label font style (normal, bold)
  • Choosing separate colors for different label states
  • Enabling or disabling the focus indicator
  • Adding or disabling focus
  • Adjusting the focus color
  • Setting the focus indicator color

As you can see from the examples, this button looks great on any background, whether solid, gradient, or bitmapped.

bitmap_button_demo.zip (324.3 KB)

Additionally, this button is cross-platform compatible and has been successfully tested on the following operating systems:

  • Windows 10/11 | Python 3.11.9 |
    wxPython 4.2.3 | wxWidgets 3.2.6

  • Linux Mint 21 | Python 3.10.12 |
    wxPython 4.2.1 gtk3 | wxWidgets 3.2.2.1

  • MacOS Sequoia 15 | Python 3.12.4 |
    wxPython 4.2.2 | wxWidgets 3.2.6

Regards