Module eagle :: Class Color
[show private | hide private]
[frames | no frames]

Type Color

object --+                
         |                
 _EGObject --+            
             |            
     _EGWidget --+        
                 |        
     _EGDataWidget --+    
                     |    
      _EGWidLabelEntry --+
                         |
                        Color


Button to select colors.

It show current/last selected color and may pop-up a new dialog to select a new one.
Method Summary
  __init__(self, id, label, color, callback, persistent)
Color selector constructor.
  __setup_connections__(self)
  __setup_gui__(self)
  color_from(color)
(Static method)
  get_value(self)
Return a tuple with ( red, green, blue ), each in 0-255 range.
  set_value(self, value)
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
x.__hash__() <==> hash(x)
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value

Property Summary
  callback
  color

Instance Method Details

__init__(self, id, label='', color=0, callback=None, persistent=False)
(Constructor)

Color selector constructor.
Parameters:
label - what to show on a label on the left side of the widget.
color - initial content. May be a triple with elements within the range 0-255, an string with color in HTML format or even a color present in X11's rgb.txt.
callback - function (or list of functions) that will be called when this widget have its data changed. Function will receive as parameters:
  • App reference
  • Widget reference
  • new value
persistent - if this widget should save its data between sessions.
Overrides:
eagle._EGWidLabelEntry.__init__

get_value(self)

Return a tuple with ( red, green, blue ), each in 0-255 range.
Overrides:
eagle._EGWidLabelEntry.get_value

set_value(self, value)

Parameters:
value - May be a triple with elements within the range 0-255, an string with color in HTML format or even a color present in X11's rgb.txt.
Overrides:
eagle._EGWidLabelEntry.set_value

Generated by Epydoc 2.1 on Sun Dec 25 16:27:53 2005 http://epydoc.sf.net