Skip to content
Permalink
Browse files

Fixed clearing of Output Element using Update method. Wasn't setting …

…"CurrentValue" variable, only the widget
  • Loading branch information...
MikeTheWatchGuy committed Jun 3, 2019
1 parent 97d374c commit 648294c0fcc73da0a49b68e0d8798d3ee56ad898
Showing with 1 addition and 0 deletions.
  1. +1 −0 PySimpleGUIWeb/PySimpleGUIWeb.py
@@ -1305,6 +1305,7 @@ def __init__(self, size=(None, None), background_color=None, text_color=None, pa
def Update(self, value=None, disabled=None, append=False, background_color=None, text_color=None, font=None, visible=None):
if value is not None and not append:
self.Widget.set_value(str(value))
self.CurrentValue = str(value)
elif value is not None and append:
self.CurrentValue = self.CurrentValue + '\n' + str(value)
self.Widget.set_value(self.CurrentValue)

0 comments on commit 648294c

Please sign in to comment.
You can’t perform that action at this time.