From 63c8782dac9ec327aaa99f2f6b3006dc42457c1c Mon Sep 17 00:00:00 2001 From: MikeTheWatchGuy Date: Mon, 2 Sep 2019 13:42:50 -0400 Subject: [PATCH] The Kolya Release - window() == window.Read(). ML = MLine = Multiline --- PySimpleGUI.py | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/PySimpleGUI.py b/PySimpleGUI.py index eee387a7..79b0c413 100644 --- a/PySimpleGUI.py +++ b/PySimpleGUI.py @@ -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