OriginPro
 
Loading...
Searching...
No Matches
originpro.base.Label Class Reference
Inheritance diagram for originpro.base.Label:
originpro.base.GObject originpro.base.BaseObject

Public Member Functions

str text (self)
 
str text (self, str text)
 
- Public Member Functions inherited from originpro.base.GObject
def __init__ (self, obj, layer)
 
def remove (self)
 
def color (self)
 
def color (self, rgb)
 
- Public Member Functions inherited from originpro.base.BaseObject
def __init__ (self, obj)
 
def __del__ (self)
 
def __str__ (self)
 
def __bool__ (self)
 
def index (self)
 
def get_str (self, prop)
 
def get_int (self, prop)
 
def get_float (self, prop)
 
def set_str (self, prop, value)
 
def set_int (self, prop, value)
 
def set_float (self, prop, value)
 
def method_int (self, name, arg='')
 
def method_float (self, name, arg='')
 
def method_str (self, name, arg='')
 
def lt_exec (self, labtalk)
 
def name (self)
 
def name (self, value)
 
def lname (self)
 
def lname (self, value)
 
def comments (self)
 
def comments (self, value)
 
def show (self)
 
def show (self, value)
 
def usertree (self)
 
def usertree (self, tr)
 
def userprops (self)
 

Additional Inherited Members

- Public Attributes inherited from originpro.base.GObject
 layer
 
- Public Attributes inherited from originpro.base.BaseObject
 obj
 

Member Function Documentation

◆ text() [1/2]

str originpro.base.Label.text (   self)
Property getter for object text.

Parameters:

Returns:
    (str) Object text
Examples:
    gl=op.find_graph()[0]
    label = gl.label('xb')
    print(label.text)

◆ text() [2/2]

str originpro.base.Label.text (   self,
str  text 
)
Property setter for object text.

Parameters:
    value (str): Text

Returns:
    (str) Object text
Examples:
    gl=op.find_graph()[0]
    label = gl.label('yl')
    label.text='123'

The documentation for this class was generated from the following file: