Merge pull request #1915 from PySimpleGUI/Dev-latest
The Kolya Release - window() == window.Read(). ML = MLine = Multiline
This commit is contained in:
commit
d2e64b0d7c
|
@ -1,5 +1,5 @@
|
|||
#!/usr/bin/python3
|
||||
version = __version__ = "4.4.0.6 Unreleased Scrollable Columns"
|
||||
version = __version__ = "4.4.0.7 Unreleased Scrollable Columns, ML, window()"
|
||||
|
||||
|
||||
# 888888ba .d88888b oo dP .88888. dP dP dP
|
||||
|
@ -1631,6 +1631,10 @@ class Multiline(Element):
|
|||
update = Update
|
||||
|
||||
|
||||
ML = Multiline
|
||||
MLine = Multiline
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------- #
|
||||
# Text #
|
||||
# ---------------------------------------------------------------------- #
|
||||
|
@ -6133,6 +6137,21 @@ class Window:
|
|||
warnings.warn('The key you passed in is no good. Key = {}*'.format(key))
|
||||
return None
|
||||
|
||||
def __call__(self, *args, **kwargs):
|
||||
"""
|
||||
Call window.Read but without having to type it out.
|
||||
window() == window.Read()
|
||||
window(timeout=50) == window.Read(timeout=50)
|
||||
|
||||
:param args:
|
||||
:param kwargs:
|
||||
:return: Tuple[Any, Dict[Any:Any]] The famous event, values that Read returns.
|
||||
"""
|
||||
return self.Read(*args, **kwargs)
|
||||
|
||||
|
||||
|
||||
|
||||
add_row = AddRow
|
||||
add_rows = AddRows
|
||||
alpha_channel = AlphaChannel
|
||||
|
|
Loading…
Reference in New Issue