def Color(*args, **metadata): """ Returns a trait whose value must be a GUI toolkit-specific color. .. deprecated:: 6.1.0 ``Color`` trait in this package will be removed in the future. It is replaced by ``Color`` trait in TraitsUI package. """ from traitsui.toolkit_traits import ColorTrait return ColorTrait(*args, **metadata)
def TraitsUIColor(*args, **metadata): """ Returns a trait whose value must be a GUI toolkit-specific color. This is copied from the deprecated trait that is in traits.api. It adds a deferred dependency on TraitsUI. This trait will be replaced by native Pyface color traits in Pyface 8.0. New code should not use this trait. """ from traitsui.toolkit_traits import ColorTrait return ColorTrait(*args, **metadata)
def Color(*args, **metadata): """ Returns a trait whose value must be a GUI toolkit-specific color. Description ----------- For wxPython, the returned trait accepts any of the following values: * A wx.Colour instance * A wx.ColourPtr instance * an integer whose hexadecimal form is 0x*RRGGBB*, where *RR* is the red value, *GG* is the green value, and *BB* is the blue value Default Value ------------- For wxPython, 0x000000 (that is, white) """ from traitsui.toolkit_traits import ColorTrait return ColorTrait(*args, **metadata)