From 4b6a574cff3623eb1ec7be63fc05da4c2339a91e Mon Sep 17 00:00:00 2001 From: MikeTheWatchGuy Date: Tue, 10 Sep 2019 15:49:49 -0400 Subject: [PATCH] NEW Element metadata (Element.metadata) --- PySimpleGUI.py | 3 ++- PySimpleGUIQt/PySimpleGUIQt.py | 3 ++- PySimpleGUIWeb/PySimpleGUIWeb.py | 3 ++- PySimpleGUIWx/PySimpleGUIWx.py | 5 ++++- 4 files changed, 10 insertions(+), 4 deletions(-) diff --git a/PySimpleGUI.py b/PySimpleGUI.py index 64890233..5a89d013 100644 --- a/PySimpleGUI.py +++ b/PySimpleGUI.py @@ -1,5 +1,5 @@ #!/usr/bin/python3 -version = __version__ = "4.5.0.1 Unreleased Columns Scroll" +version = __version__ = "4.5.0.2 Unreleased" # 888888ba .d88888b oo dP .88888. dP dP dP @@ -542,6 +542,7 @@ class Element(): self.Widget = None # Set when creating window. Has the main tkinter widget for element self.Tearoff = False self.ParentRowFrame = None # type tk.Frame + self.metadata = None # type: Any def _RightClickMenuCallback(self, event): """ diff --git a/PySimpleGUIQt/PySimpleGUIQt.py b/PySimpleGUIQt/PySimpleGUIQt.py index 160c6a78..e7af5095 100644 --- a/PySimpleGUIQt/PySimpleGUIQt.py +++ b/PySimpleGUIQt/PySimpleGUIQt.py @@ -1,5 +1,5 @@ #!/usr/bin/python3 -version = __version__ = "0.28.0 Released PEP8-ifed" +version = __version__ = "0.29.0.1 Unreleased" import sys import types @@ -368,6 +368,7 @@ class Element(): self.Tooltip = tooltip self.TooltipObject = None self.Visible = visible + self.metadata = None # type: Any def _FindReturnKeyBoundButton(self, form): for row in form.Rows: diff --git a/PySimpleGUIWeb/PySimpleGUIWeb.py b/PySimpleGUIWeb/PySimpleGUIWeb.py index 0e1270a7..d238168d 100644 --- a/PySimpleGUIWeb/PySimpleGUIWeb.py +++ b/PySimpleGUIWeb/PySimpleGUIWeb.py @@ -1,6 +1,6 @@ #usr/bin/python3 -version = __version__ = "0.31.0.4 Unreleased" +version = __version__ = "0.31.0.5 Unreleased" import sys import datetime @@ -347,6 +347,7 @@ class Element(): self.Tooltip = tooltip self.TooltipObject = None self.Visible = visible + self.metadata = None # type: Any # ------------------------- REMI CHANGED CALLBACK ----------------------- diff --git a/PySimpleGUIWx/PySimpleGUIWx.py b/PySimpleGUIWx/PySimpleGUIWx.py index 4abdcdd7..70a0150d 100644 --- a/PySimpleGUIWx/PySimpleGUIWx.py +++ b/PySimpleGUIWx/PySimpleGUIWx.py @@ -1,7 +1,7 @@ #!/usr/bin/python3 from sphinx.ext.autosummary import autosummary_table -version = __version__ = "0.13.0.1 Unreleased PEP8-ified" +version = __version__ = "0.13.0.2 Unreleased" import sys import wx @@ -352,6 +352,9 @@ class Element(): self.Tooltip = tooltip self.TooltipObject = None self.Visible = visible + self.metadata = None # type: Any + + def FindReturnKeyBoundButton(self, form): for row in form.Rows: