Added default font size
This commit is contained in:
parent
9e08553232
commit
59d2401f81
1 changed files with 3 additions and 1 deletions
|
@ -1,5 +1,7 @@
|
||||||
from TextDesign import TextDesign
|
from TextDesign import TextDesign
|
||||||
from TextWraper import wrap_text_with_font
|
from TextWraper import wrap_text_with_font
|
||||||
|
from Assets import defaultfontsize
|
||||||
|
|
||||||
|
|
||||||
default_props = {
|
default_props = {
|
||||||
"color" : "black",
|
"color" : "black",
|
||||||
|
@ -9,7 +11,7 @@ default_props = {
|
||||||
class TableTextDesign (TextDesign):
|
class TableTextDesign (TextDesign):
|
||||||
"""Gets a matrix with text that is than
|
"""Gets a matrix with text that is than
|
||||||
displayed in a table without borders."""
|
displayed in a table without borders."""
|
||||||
def __init__ (self, size, text_matrix, max_col_size = None, max_row_size = None, font = None, fontsize = 12, column_horizontal_alignments = [], mask = True, line_spacing = 0, col_spacing = 0, truncate_rows = True, truncate_cols = True, wrap = False, truncate_text=True, truncate_suffix="...", cell_properties=None, background_color = "white"):
|
def __init__ (self, size, text_matrix, max_col_size = None, max_row_size = None, font = None, fontsize = defaultfontsize, column_horizontal_alignments = [], mask = True, line_spacing = 0, col_spacing = 0, truncate_rows = True, truncate_cols = True, wrap = False, truncate_text=True, truncate_suffix="...", cell_properties=None, background_color = "white"):
|
||||||
super(TableTextDesign, self).__init__(size, font=font, fontsize=fontsize, mask=mask)
|
super(TableTextDesign, self).__init__(size, font=font, fontsize=fontsize, mask=mask)
|
||||||
self.__init_image__(background_color)
|
self.__init_image__(background_color)
|
||||||
self.matrix = text_matrix
|
self.matrix = text_matrix
|
||||||
|
|
Loading…
Reference in a new issue