From 8e9719ac57cb650cd9560374ac7926a041a4b400 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Mon, 5 Dec 2022 16:37:59 +0800 Subject: [PATCH] bugfix --- kivyblocks/upload.py | 2 ++ setup.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/kivyblocks/upload.py b/kivyblocks/upload.py index 078ade4..5c5d594 100644 --- a/kivyblocks/upload.py +++ b/kivyblocks/upload.py @@ -21,6 +21,7 @@ class UploadFile(ClickableIconText): "height":CSize(1) } self.source = blockImage('upload.png') + self.text = self.name self.file_url = None self.running = None @@ -44,6 +45,7 @@ class UploadFile(ClickableIconText): yield d fpath = files[0] fn = os.path.basename(fpath) + self.text = fn print('fn=', fn) headers={ 'Content-Type': 'application/octet-stream', diff --git a/setup.py b/setup.py index 01ab6e5..2f8966e 100644 --- a/setup.py +++ b/setup.py @@ -11,7 +11,7 @@ with open('kivyblocks/version.py', 'r') as f: y = x[x.index("'")+1:] z = y[:y.index("'")] version = z -with open("README.md", "r") as fh: +with open("README.md", "r", encoding="utf-8") as fh: long_description = fh.read()