From ce9fa3a50497941c8ec34c1ac334f35da85c5c85 Mon Sep 17 00:00:00 2001 From: Philipp Rudiger Date: Fri, 13 Mar 2020 13:04:09 +0100 Subject: [PATCH] Fixed param warnings (#1151) --- panel/widgets/misc.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/panel/widgets/misc.py b/panel/widgets/misc.py index 90ddf7d116..2a73db1933 100644 --- a/panel/widgets/misc.py +++ b/panel/widgets/misc.py @@ -242,7 +242,7 @@ def _update_label(self): raise ValueError('Must provide filename if file-like ' 'object is provided.') label = '%s %s' % (label, filename) - self.set_param(label=label) + self.label = label self._default_label = True @param.depends('embed', 'file', 'callback', watch=True) @@ -292,5 +292,5 @@ def _transfer(self): data = "data:{mime};base64,{b64}".format(mime=mime, b64=b64) self._synced = True - self.set_param(data=data, filename=filename) + self.param.set_param(data=data, filename=filename) self._update_label()