Let me explain:
Code: Select all
from com.sun.star.style.ParagraphAdjust import RIGHT
...
cursor.ParaAdjust = RIGHT
print(cursor.ParaAdjust == RIGHT)
---> False

checking the types:
Code: Select all
type(cursor.ParaAdjust)
---> <class 'int'>
type(RIGHT)
---> <class 'uno.Enum'>
Code: Select all
type(RIGHT.value)
---> <class 'string'>
print(RIGHT.value)
---> 'RIGHT'
Code: Select all
LEFT = 0
RIGHT = 1
BLOCK = 2
CENTER = 3
STRETCH = 0
Where are these values defined?
How could I get these values using the pyUNO API?