Fixed clearing of Output Element using Update method. Wasn't setting "CurrentValue" variable, only the widget

This commit is contained in:
MikeTheWatchGuy 2019-06-03 10:27:27 -04:00
parent 97d374cfea
commit 648294c0fc
1 changed files with 1 additions and 0 deletions

View File

@ -1305,6 +1305,7 @@ class Output(Element):
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)