Release 0.31.0

This commit is contained in:
PySimpleGUI 2019-11-06 18:31:04 -05:00
parent 523596197a
commit 7e6069a16b
2 changed files with 33 additions and 17 deletions

View File

@ -1,6 +1,6 @@
#usr/bin/python3 #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 sys
import datetime import datetime
@ -3809,23 +3809,22 @@ def BuildResultsForSubform(form, initialize_only, top_level_form):
value = None value = None
elif element.Type == ELEM_TYPE_INPUT_COMBO: elif element.Type == ELEM_TYPE_INPUT_COMBO:
element = element # type: Combo element = element # type: Combo
value = element.DefaultValue value = element.Widget.get_value()
elif element.Type == ELEM_TYPE_INPUT_OPTION_MENU: elif element.Type == ELEM_TYPE_INPUT_OPTION_MENU:
# value = element.TKStringVar.get() # value = element.TKStringVar.get()
value = None value = None
elif element.Type == ELEM_TYPE_INPUT_LISTBOX: elif element.Type == ELEM_TYPE_INPUT_LISTBOX:
element = element # type: Listbox element = element # type: Listbox
value = element.DefaultValues value = element.Widget.get_value()
# value = [value,] value = [value,]
# items = element.TKListbox.curselection() # items = element.TKListbox.curselection()
# value = [element.Values[int(item)] for item in items] # value = [element.Values[int(item)] for item in items]
elif element.Type == ELEM_TYPE_INPUT_SPIN: elif element.Type == ELEM_TYPE_INPUT_SPIN:
element = element # type: 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: elif element.Type == ELEM_TYPE_INPUT_SLIDER:
element = element # type: Slider element = element # type: Slider
value = element.DefaultValue value = element.Widget.get_value()
elif element.Type == ELEM_TYPE_INPUT_MULTILINE: elif element.Type == ELEM_TYPE_INPUT_MULTILINE:
element = element # type: Multiline element = element # type: Multiline
value = element.Widget.get_value() 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 = remi.gui.Image(element.Filename)
element.Widget = SuperImage(element.Filename if element.Filename is not None else element.Data) element.Widget = SuperImage(element.Filename if element.Filename is not None else element.Data)
if element.Filename is not None: 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) element.Widget.load(element.Filename)
do_font_and_color(element.Widget) do_font_and_color(element.Widget)
if element.EnableEvents: if element.EnableEvents:

View File

@ -8,7 +8,7 @@
![Python Version](https://img.shields.io/badge/Python-3.x-yellow.svg) ![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! 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 ## Primary PySimpleGUI Documentation
To get instructions on how use PySimpleGUI's APIs, please reference the [main documentation](http://www.PySimpleGUI.org). 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 * click events works
## 0.28.0 PySimpleGUIWeb 15-May-2019 ## 0.28.1 PySimpleGUIWeb 15-May-2019
* Menus * Menus
* Yes, the full Menu Bar across the top of the window! * 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 * 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 * 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 # Design
# Author # Author
@ -406,7 +424,6 @@ One-time patch to remove a debug print
# Acknowledgments # Acknowledgments
<!--stackedit_data: <!--stackedit_data:
eyJoaXN0b3J5IjpbMjA1OTc2NTUwMywtMTE2NjcxOTkxNyw0Nz eyJoaXN0b3J5IjpbLTExNjY3MTk5MTcsNDc1ODY1Njc2LC0xMD
U4NjU2NzYsLTEwNTcxMDM2NDMsMTIxMzM1MjYzNiwtMTE2MDY4 U3MTAzNjQzLDEyMTMzNTI2MzYsLTExNjA2ODQzMzldfQ==
NDMzOV19
--> -->