This commit is contained in:
yumoqing 2022-12-05 16:37:59 +08:00
parent 2532efa9f2
commit 8e9719ac57
2 changed files with 3 additions and 1 deletions

View File

@ -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',

View File

@ -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()