bootstack.ask_color#

bootstack.ask_color(*, title='', value=None, parent=None)#

Show a color chooser dialog.

Parameters:
  • title (str) – Dialog window title.

  • value (str | None) – Pre-selected color as a hex string (e.g. '#ff0000'). Defaults to the current theme background color.

  • parent (Any) – Parent widget. Defaults to the active root window.

Returns:

A ColorChoice with rgb, hsl, and hex attributes, or None if canceled.

Return type:

ColorChoice | None