Merge pull request #1975 from PySimpleGUI/Dev-latest
The text parm of the Text element is now OPTIONAL. The default is ''.
This commit is contained in:
commit
eba31e79e7
4 changed files with 8 additions and 8 deletions
|
@ -1,6 +1,6 @@
|
|||
#usr/bin/python3
|
||||
|
||||
version = __version__ = "0.31.0.5 Unreleased"
|
||||
version = __version__ = "0.31.0.6 Unreleased"
|
||||
|
||||
import sys
|
||||
import datetime
|
||||
|
@ -993,7 +993,7 @@ class MultilineOutput(Element):
|
|||
# Text #
|
||||
# ---------------------------------------------------------------------- #
|
||||
class Text(Element):
|
||||
def __init__(self, text, size=(None, None), auto_size_text=None, click_submits=None, enable_events=False, relief=None, border_width=None, font=None, text_color=None, background_color=None, justification=None, pad=None, margins=None, key=None, tooltip=None, visible=True, size_px=(None,None)):
|
||||
def __init__(self, text='', size=(None, None), auto_size_text=None, click_submits=None, enable_events=False, relief=None, border_width=None, font=None, text_color=None, background_color=None, justification=None, pad=None, margins=None, key=None, tooltip=None, visible=True, size_px=(None,None)):
|
||||
"""
|
||||
Text
|
||||
:param text:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue