Defines the characteristics of a paragraph. The characteristics are:
font (a FontStyle instance), right margin, left margin, first indent, top
margin, bottom margin, alignment, level, top border, bottom border, right
border, left border, padding, and background color.
|
|
|
set_description(self,
text)
Set the desciption of the paragraph |
source code
|
|
|
get_description(self)
Return the desciption of the paragraph |
source code
|
|
|
set(self,
rmargin=None,
lmargin=None,
first_indent=None,
tmargin=None,
bmargin=None,
align=None,
tborder=None,
bborder=None,
rborder=None,
lborder=None,
pad=None,
bgcolor=None,
font=None)
Allows the values of the object to be set. |
source code
|
|
|
|
|
get_header_level(self)
Return the header level of the paragraph |
source code
|
|
|
|
|
get_font(self)
Return the FontStyle of the paragraph |
source code
|
|
|
|
|
get_padding(self)
Return a the padding of the paragraph |
source code
|
|
|
|
|
get_top_border(self)
Return 1 if a top border is specified |
source code
|
|
|
|
|
get_bottom_border(self)
Return 1 if a bottom border is specified |
source code
|
|
|
|
|
get_left_border(self)
Return 1 if a left border is specified |
source code
|
|
|
|
|
get_right_border(self)
Return 1 if a right border is specified |
source code
|
|
|
get_background_color(self)
Return a tuple indicating the RGB components of the background color |
source code
|
|
|
|
|
|
|
get_alignment(self)
Return the alignment of the paragraph |
source code
|
|
|
get_alignment_text(self)
Return a text string representing the alginment, either 'left',
'right', 'center', or 'justify' |
source code
|
|
|
set_left_margin(self,
value)
sets the left indent in centimeters |
source code
|
|
|
set_right_margin(self,
value)
sets the right indent in centimeters |
source code
|
|
|
set_first_indent(self,
value)
sets the first line indent in centimeters |
source code
|
|
|
set_top_margin(self,
value)
sets the space above paragraph in centimeters |
source code
|
|
|
set_bottom_margin(self,
value)
sets the space below paragraph in centimeters |
source code
|
|
|
get_left_margin(self)
returns the left indent in centimeters |
source code
|
|
|
get_right_margin(self)
returns the right indent in centimeters |
source code
|
|
|
get_first_indent(self)
returns the first line indent in centimeters |
source code
|
|
|
get_top_margin(self)
returns the space above paragraph in centimeters |
source code
|
|
|
get_bottom_margin(self)
returns the space below paragraph in centimeters |
source code
|
|
|
|
|
|