Package mglutil :: Package gui :: Package BasicWidgets :: Package Tk :: Module colorWidgets :: Class ColorEditor
[hide private]
[frames] | no frames]

Class ColorEditor

source code

The ColorEditor is a widget providing a colorwheel, a value scale, HSV entries, RGB entries and HEX(HexTriplet) entries

Instance Methods [hide private]
  __init__(self, master=None, currentColor=(1.0,1.0,1.0), mode='RGB', commands=None, immediate=1)
  createColorEditor(self)
  set(self, color, mode='RGB', trigger=1)
Set the current color
  get(self, mode='RGB')
  pack(self, *args, **kw)
  pack_forget(self, *args, **kw)
  grid(self, *args, **kw)
  grid_forget(self, *args, **kw)
  colorWidget_cb(self, rgbcolor)
  scale_cb(self, val)
  scaleImm_cb(self, val)
  scaleUp_cb(self, event=None)
  hVal_cb(self)
  sVal_cb(self)
  vVal_cb(self)
  rVal_cb(self)
  gVal_cb(self)
  bVal_cb(self)
  hexVal_cb(self)
  updateWidgetsColor(self, rgbcolor, who='set', trigger=1)

Method Details [hide private]

__init__(self, master=None, currentColor=(1.0,1.0,1.0), mode='RGB', commands=None, immediate=1)
(Constructor)

source code 
None

createColorEditor(self)

source code 
None

set(self, color, mode='RGB', trigger=1)

source code 
Set the current color

get(self, mode='RGB')

source code 
None

pack(self, *args, **kw)

source code 
None

pack_forget(self, *args, **kw)

source code 
None

grid(self, *args, **kw)

source code 
None

grid_forget(self, *args, **kw)

source code 
None

colorWidget_cb(self, rgbcolor)

source code 
None

scale_cb(self, val)

source code 
None

scaleImm_cb(self, val)

source code 
None

scaleUp_cb(self, event=None)

source code 
None

hVal_cb(self)

source code 
None

sVal_cb(self)

source code 
None

vVal_cb(self)

source code 
None

rVal_cb(self)

source code 
None

gVal_cb(self)

source code 
None

bVal_cb(self)

source code 
None

hexVal_cb(self)

source code 
None

updateWidgetsColor(self, rgbcolor, who='set', trigger=1)

source code 
None