From 0fcccb4b335d24905acc20fe7554f95f11067e32 Mon Sep 17 00:00:00 2001 From: PySimpleGUI Date: Sun, 10 May 2020 12:24:55 -0400 Subject: [PATCH] Version 0.34.0 --- PySimpleGUIQt/PySimpleGUIQt.py | 15 +++++++++------ PySimpleGUIQt/readme.md | 13 +++++++++---- 2 files changed, 18 insertions(+), 10 deletions(-) diff --git a/PySimpleGUIQt/PySimpleGUIQt.py b/PySimpleGUIQt/PySimpleGUIQt.py index c5c26942..6420bfbb 100644 --- a/PySimpleGUIQt/PySimpleGUIQt.py +++ b/PySimpleGUIQt/PySimpleGUIQt.py @@ -1,5 +1,5 @@ #!/usr/bin/python3 -version = __version__ = "0.33.0 Released 6-May-2020" +version = __version__ = "0.34.0 Released 10-May-2020" port = 'PySimpleGUIQt' @@ -218,9 +218,11 @@ SYSTEM_TRAY_MESSAGE_ICON_CRITICAL = QSystemTrayIcon.Critical SYSTEM_TRAY_MESSAGE_ICON_NOICON = QSystemTrayIcon.NoIcon # "Special" Key Values.. reserved -# Events that are pre-defined # Key representing a Read timeout -TIMEOUT_KEY = '__TIMEOUT__' +EVENT_TIMEOUT = TIMEOUT_EVENT = TIMEOUT_KEY = '__TIMEOUT__' +# Window closed event (user closed with X or destroyed using OS) +WIN_CLOSED = WINDOW_CLOSED = None + # Key indicating should not create any return values for element WRITE_ONLY_KEY = '__WRITE ONLY__' EVENT_SYSTEM_TRAY_ICON_DOUBLE_CLICKED = '__DOUBLE_CLICKED__' @@ -2490,7 +2492,8 @@ class Column(Element): # self.ImageSize = image_size # self.ImageSubsample = image_subsample bg = background_color if background_color is not None else DEFAULT_BACKGROUND_COLOR - self.Widget = self.QT_QGroupBox = None # type: QGroupBox + self.Widget = self.QT_QGroupBox = None # type: QGroupBox + self.vbox_layout = None # type: QVBoxLayout self.Layout(layout) super().__init__(ELEM_TYPE_COLUMN, background_color=bg, size=size, pad=pad, key=key, visible=visible, metadata=metadata) @@ -8642,7 +8645,7 @@ def main(): # window.Element('_LISTBOX_').SetValue(['Listbox 1','Listbox 3']) while True: # Event Loop # TimerStart() - event, values = window.Read(timeout=10) + event, values = window.read(timeout=10) print(event, values) if event != TIMEOUT_KEY else None window['-MLINE-'].update(value=str(values), append=True) if event != TIMEOUT_KEY else None if event is None or event == 'Exit': @@ -8666,7 +8669,7 @@ def main(): i += 1 # TimerStop() - window.Close() + window.close() diff --git a/PySimpleGUIQt/readme.md b/PySimpleGUIQt/readme.md index 211983d8..1cf4871b 100644 --- a/PySimpleGUIQt/readme.md +++ b/PySimpleGUIQt/readme.md @@ -805,19 +805,24 @@ Highlights - Read with close (Single line GUIs!), Print to Multiline, Scrollable ## 0.33.0 PySimpleGUIQt 6-May-2020 -* Added constants - * WIN_CLOSED and WINDOW_CLOSED - * EVENT_TIMEOUT and TIMEOUT_EVENT + * Added expansion capabilities * Element.row_frame - The QHBoxLayout the element is contained within * Column.vbox_layout - The QVBoxLayout contained in Column element +## 0.34.0 PySimpleGUIQt 10-May-2020 + +This time for REAL added the constants. I don't know how to changes got lost but they did. + +* Added constants + * WIN_CLOSED and WINDOW_CLOSED + * EVENT_TIMEOUT and TIMEOUT_EVENT # Design - ## Author +## Author The PySimpleGUI Organization PySimpleGUI.org