From a156c829d0587b253efc03526bf783b545f54201 Mon Sep 17 00:00:00 2001 From: scdhh Date: Fri, 11 Oct 2024 05:24:31 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20=E6=B7=BB=E5=8A=A0=E4=B8=8B?= =?UTF-8?q?=E8=BD=BD=E5=85=A8=E9=83=A8=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/tsl_tools/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/tsl_tools/__init__.py b/src/tsl_tools/__init__.py index 145b2d6..3decabe 100644 --- a/src/tsl_tools/__init__.py +++ b/src/tsl_tools/__init__.py @@ -211,6 +211,10 @@ def timer_callback() -> None: if table.rows: ui.button('下载表格', on_click=lambda: ui.download(to_excel(get_user_info.result), 'test.xlsx')) ui.button('下载头像', on_click=download_avatars) + ui.button( + '下载全部', + on_click=lambda: ui.download(to_zip(get_user_info.result, include_table=True), 'all.zip'), + ) ui.notify(data) timer = ui.timer(0.1, callback=timer_callback)