Syntax error
This commit is contained in:
parent
ff93dd92e7
commit
830485da5a
|
@ -1108,8 +1108,7 @@ class MultilineOutput(Element):
|
||||||
# Text #
|
# Text #
|
||||||
# ---------------------------------------------------------------------- #
|
# ---------------------------------------------------------------------- #
|
||||||
class Text(Element):
|
class Text(Element):
|
||||||
def __init__(self, text, size=(None, None), auto_size_text=None, click_submits=None, relief=None, font=None,
|
def __init__(self, text, size=(None, None), auto_size_text=None, click_submits=None, enable_events=True, relief=None, font=None, text_color=None, background_color=None, justification=None, pad=None, margins=None, key=None, tooltip=None):
|
||||||
text_color=None, background_color=None, justification=None, pad=None, margins=None, key=None, tooltip=None):
|
|
||||||
'''
|
'''
|
||||||
Text Element
|
Text Element
|
||||||
:param text:
|
:param text:
|
||||||
|
@ -1129,7 +1128,7 @@ class Text(Element):
|
||||||
self.TextColor = text_color if text_color else DEFAULT_TEXT_COLOR
|
self.TextColor = text_color if text_color else DEFAULT_TEXT_COLOR
|
||||||
self.Justification = justification or 'left'
|
self.Justification = justification or 'left'
|
||||||
self.Relief = relief
|
self.Relief = relief
|
||||||
self.ClickSubmits = click_submits
|
self.ClickSubmits = click_submits or enable_events
|
||||||
self.Margins = margins
|
self.Margins = margins
|
||||||
if background_color is None:
|
if background_color is None:
|
||||||
bg = DEFAULT_TEXT_ELEMENT_BACKGROUND_COLOR
|
bg = DEFAULT_TEXT_ELEMENT_BACKGROUND_COLOR
|
||||||
|
|
Loading…
Reference in New Issue