bootstack.ask_color#

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

Show a color chooser dialog.

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

  • color (str | None) – Initial 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