Package dtk :: Package ui :: Module color_selection :: Class ColorButton

Class ColorButton

source code


Button to select color.

Instance Methods
 
__init__(self, color="#FF0000")
Initialize ColorButton class.
source code
 
set_color(self, color)
Internal function to set color.
source code
 
get_color(self)
Get color.
source code
Class Variables
  __gsignals__ = {"color-select":(gobject.SIGNAL_RUN_LAST, gobje...
Method Details

__init__(self, color="#FF0000")
(Constructor)

source code 

Initialize ColorButton class.

Parameters:
  • color - Hex color string to initialize, default is "#FF0000".

set_color(self, color)

source code 

Internal function to set color.

Parameters:
  • color - Hex color string.

get_color(self)

source code 

Get color.

Returns:
Return hex color string.

Class Variable Details

__gsignals__

Value:
{"color-select":(gobject.SIGNAL_RUN_LAST, gobject.TYPE_NONE, (str,)),}