|
| | __init__ (self, obj, layer) |
| |
| | remove (self) |
| |
| | color (self) |
| |
| | color (self, rgb) |
| |
|
| __del__ (self) |
| |
|
| __str__ (self) |
| |
|
| __bool__ (self) |
| |
| | index (self) |
| |
| | get_str (self, prop) |
| |
| | get_int (self, prop) |
| |
| | get_float (self, prop) |
| |
| | set_str (self, prop, value) |
| |
| | set_int (self, prop, value) |
| |
| | set_float (self, prop, value) |
| |
| | method_int (self, name, arg='') |
| |
| | method_float (self, name, arg='') |
| |
| | method_str (self, name, arg='') |
| |
| | lt_exec (self, labtalk) |
| |
| | name (self) |
| |
| | name (self, value) |
| |
| | lname (self) |
| |
| | lname (self, value) |
| |
| | comments (self) |
| |
| | comments (self, value) |
| |
| | show (self) |
| |
| | show (self, value) |
| |
| | usertree (self) |
| |
| | usertree (self, tr) |
| |
| | userprops (self) |
| |
This class represents an instance of a text object on a GLayer.
| originpro.base.GObject.color |
( |
| self, |
|
|
| rgb ) |
Property setter for the RGB color of the text object
Parameters:
rgb(int, str, tuple): various way to specify color, see function ocolor(rgb) in op.utils
Returns:
None
Examples:
label = g[0].label('text')
label.color = 'Red'
label.color = 3 # 'Green'
label.color = '#00f' # 'blue'
label.color = '#0000ff' # 'blue'
label.color = [0, 255, 0] # 'green'