From 7e6069a16b6e0f852ba274cd0ddb4e9a97206f57 Mon Sep 17 00:00:00 2001 From: PySimpleGUI Date: Wed, 6 Nov 2019 18:31:04 -0500 Subject: [PATCH] Release 0.31.0 --- PySimpleGUIWeb/PySimpleGUIWeb.py | 15 +++++++------- PySimpleGUIWeb/readme.md | 35 ++++++++++++++++++++++++-------- 2 files changed, 33 insertions(+), 17 deletions(-) diff --git a/PySimpleGUIWeb/PySimpleGUIWeb.py b/PySimpleGUIWeb/PySimpleGUIWeb.py index b6948977..8a1f216d 100644 --- a/PySimpleGUIWeb/PySimpleGUIWeb.py +++ b/PySimpleGUIWeb/PySimpleGUIWeb.py @@ -1,6 +1,6 @@ #usr/bin/python3 -version = __version__ = "0.31.0.10 Unreleased No flicker FOR REAL, fixed multiline not in values, Oct 29" +version = __version__ = "0.31.0 Released 06 Nov 2019" import sys import datetime @@ -3809,23 +3809,22 @@ def BuildResultsForSubform(form, initialize_only, top_level_form): value = None elif element.Type == ELEM_TYPE_INPUT_COMBO: element = element # type: Combo - value = element.DefaultValue + value = element.Widget.get_value() elif element.Type == ELEM_TYPE_INPUT_OPTION_MENU: # value = element.TKStringVar.get() value = None elif element.Type == ELEM_TYPE_INPUT_LISTBOX: element = element # type: Listbox - value = element.DefaultValues - # value = [value,] + value = element.Widget.get_value() + value = [value,] # items = element.TKListbox.curselection() # value = [element.Values[int(item)] for item in items] elif element.Type == ELEM_TYPE_INPUT_SPIN: element = element # type: Spin - value = element.DefaultValue - # value = element.Widget.get_value() + value = element.Widget.get_value() elif element.Type == ELEM_TYPE_INPUT_SLIDER: element = element # type: Slider - value = element.DefaultValue + value = element.Widget.get_value() elif element.Type == ELEM_TYPE_INPUT_MULTILINE: element = element # type: Multiline value = element.Widget.get_value() @@ -4561,7 +4560,7 @@ def PackFormIntoFrame(form, containing_frame, toplevel_form): # element.Widget = remi.gui.Image(element.Filename) element.Widget = SuperImage(element.Filename if element.Filename is not None else element.Data) if element.Filename is not None: - print(f'loading image filename in pack frame {element.Filename}') + # print(f'loading image filename in pack frame {element.Filename}') element.Widget.load(element.Filename) do_font_and_color(element.Widget) if element.EnableEvents: diff --git a/PySimpleGUIWeb/readme.md b/PySimpleGUIWeb/readme.md index e20eabbb..4ddad222 100644 --- a/PySimpleGUIWeb/readme.md +++ b/PySimpleGUIWeb/readme.md @@ -8,7 +8,7 @@ ![Python Version](https://img.shields.io/badge/Python-3.x-yellow.svg) -![Python Version](https://img.shields.io/badge/PySimpleGUIWeb_-0..0-orange.svg?longCache=true&style=for-the-badge) +![Python Version](https://img.shields.io/badge/PySimpleGUIWeb_-0.31.0-orange.svg?longCache=true&style=for-the-badge) @@ -20,8 +20,6 @@ Your source code will work on tkinter, Qt, WxPython and now in a browser (thanks Check out [repl.it](https://repl.it/@PySimpleGUI/PySimpleGUIWeb-Demos), the new way to run your PySimpleGUI code in a browser! -![image](https://user-images.githubusercontent.com/46163555/63650157-a223b300-c715-11e9-9a96-7c8961298065.png) - ## Primary PySimpleGUI Documentation To get instructions on how use PySimpleGUI's APIs, please reference the [main documentation](http://www.PySimpleGUI.org). @@ -371,7 +369,7 @@ One-time patch to remove a debug print * click events works -## 0.28.0 PySimpleGUIWeb 15-May-2019 +## 0.28.1 PySimpleGUIWeb 15-May-2019 * Menus * Yes, the full Menu Bar across the top of the window! @@ -393,8 +391,28 @@ One-time patch to remove a debug print * Behaves like a Column element for now since no official Remi Frame * Fix for popups that get data - New dictionary return values messed up popups. Needed to use keys internally - - +## 0.31.0 PySimpleGUIWeb 04-Nov-2019 + +* PEP8 bindings! +* Window - NEW way of finding elements + * Use window[key] instead of window.FindElement(key)!! +* Winow - "calling" an existing window object will call its read method +* Version number added both dunder version and version work +* Renamed some variables to be private by adding _ to the front +* METADATA added to all elements and Window +* Ability to "call" an element. The effect is to call that element's update method +* Removed all delete functions in the classes. Were poorly done and not consistent +* Output element - fix for color defaults, CurrentValue contains all of the text currently shown +* Image Element + * Rewrite done by Remi team!!! + * Fixes flicker when using with OpenCV +* Removed quite a bit of unused code +* Added prints where items are not yet implemented +* Window - finalize parameter added +* Get screen dimensions always returns (0,0) for now until can figure it out +* Made return values computation easier +* Two new look and feel color settings - Material1, Material2 + # Design # Author @@ -406,7 +424,6 @@ One-time patch to remove a debug print # Acknowledgments \ No newline at end of file