# GimpUi.BrushSelectButton::brush-set

    def callback(brush_select_button, brush_name, opacity, spacing, paint_mode, width, height, mask_data, dialog_closing, user_param1, ...)

The ::brush-set signal is emitted when the user selects a brush.

Since 2.4

## user_param1

brush_select_button

  instance of GimpUi.BrushSelectButton that is emitting the signal

brush_name

  the name of the currently selected brush.

opacity

  opacity of the brush

spacing

  spacing of the brush

paint_mode

  paint mode of the brush

width

  width of the brush

height

  height of the brush

mask_data

  brush mask data

dialog_closing

  whether the dialog was closed or not.

...

  additional user parameters (if any)