Skip to content

Commit 72c1ba7

Browse files
Removed warnings
1 parent 32d5a14 commit 72c1ba7

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/ipyautoui/custom/edittsv.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,9 @@ def value(self, value):
330330

331331

332332
def __init__(self, **kwargs):
333-
333+
value = kwargs.get("value")
334+
if "value" in kwargs:
335+
kwargs.pop("value")
334336
self.ddiff = DisplayDeepDiff(layout=w.Layout(display="None"))
335337
self.bn_confirmation = w.Button(
336338
icon="check", disabled=True, layout={"width": BUTTON_WIDTH_MIN, "display": "None"}
@@ -342,6 +344,7 @@ def __init__(self, **kwargs):
342344
self.bn_confirmation.on_click(self._bn_check_upload)
343345
self.bn_cross.on_click(self._bn_cross_clicked)
344346
super().__init__(**kwargs)
347+
self.value = value
345348

346349
def _set_children(self):
347350
self.vbx_bns.children = [self.bn_copy, self.bn_upload_text, self.bn_confirmation, self.bn_cross]

0 commit comments

Comments
 (0)