Fix ba.Call warnings in translate

This commit is contained in:
! Freaku 2025-10-27 19:41:05 +05:30 committed by GitHub
parent a010f1ae0e
commit d0b72a0498
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -103,7 +103,7 @@ class NewPW(bauiv1lib.party.PartyWindow):
maxwidth=self._scroll_width * 0.94,
shadow=0.3,
flatness=1.0,
on_activate_call=bui.Call(self._copy_msg, msg),
on_activate_call=bui.CallPartial(self._copy_msg, msg),
selectable=True,
)
@ -113,7 +113,7 @@ class NewPW(bauiv1lib.party.PartyWindow):
bui.containerwidget(edit=self._columnwidget, visible_child=txt)
bui.textwidget(edit=txt,
on_activate_call=bui.Call(self._translate_other, msg),
on_activate_call=bui.CallPartial(self._translate_other, msg),
click_activate=True)
def _translate_other(self, msg: str):