Merge pull request #1185 from PySimpleGUI/Dev-latest

Release 0.12.0
This commit is contained in:
MikeTheWatchGuy 2019-02-28 11:52:03 -05:00 committed by GitHub
commit 574fdcafd3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 19 additions and 13 deletions

View File

@ -612,19 +612,18 @@ class Combo(Element):
def Update(self, value=None, values=None, set_to_index=None, disabled=None, readonly=None, background_color=None, text_color=None, font=None, visible=None):
if values is not None:
self.WxComboBox.Set(values)
self.Widget.empty()
for i, item in enumerate(values):
self.Widget.append(value=item, key=str(i))
if value:
self.WxComboBox.SetSelection(self.WxComboBox.FindString(value))
self.Widget.select_by_value(value)
if set_to_index is not None:
self.WxComboBox.SetSelection(set_to_index)
if disabled is True:
self.WxComboBox.Enable(False)
elif disabled is False:
self.WxComboBox.Enable(True)
if readonly is not None:
self.WxComboBox.SetWindowStyle(wx.CB_READONLY)
try: # just in case a bad index is passed in
self.Widget.select_by_key(str(set_to_index))
except:
pass
super().Update(self.WxComboBox, background_color=background_color, text_color=text_color, font=font, visible=visible)
super().Update(self.Widget, background_color=background_color, text_color=text_color, font=font, visible=visible, disabled=disabled)

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/PySimpleGUIWeb_-0.11.0-orange.svg?longCache=true&style=for-the-badge)
![Python Version](https://img.shields.io/badge/PySimpleGUIWeb_-0.12.0-orange.svg?longCache=true&style=for-the-badge)
@ -31,11 +31,15 @@ This Readme is for information ***specific to*** the Web port of PySimpleGUI.
PySimpleGUIWeb enables you to run your PySimpleGUI programs in your web browser. It utilizes a package called Remi to achieve this amazing package.
## Engineering Pre-Release Version 0.10.0
## Engineering Pre-Release
Be aware you are running a "Pre-Rlease" version of PySimpleGUIWeb. This means sh*t doesn't work in many places. This also means that you get to have fun with the many things that DO work and that are being added to every week.
[Announcements of Latest Developments](https://github.com/MikeTheWatchGuy/PySimpleGUI/issues/142)
Having trouble? Visit the [GitHub site ](http://www.PySimpleGUI.com) and log an Issue.
## Installation
@ -220,6 +224,9 @@ New features
* Struggling to get the "resources" settings understood so can work with files
* I have a ways to go
## 0.12.0 PySimpleGUIWeb 28-Feb-2019
* Combo.Update now fully functional
# Design