update
This commit is contained in:
parent
8f6b34a3d4
commit
4a0a17b434
BIN
favicon.ico
Normal file
BIN
favicon.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 162 KiB |
@ -1,5 +1,5 @@
|
||||
[tool.poetry-pyinstaller-plugin.scripts]
|
||||
webp_to_png = { source = "webp_to_png/__main__.pyw", type = "onedir", bundle = false }
|
||||
webp_to_png = { source = "webp_to_png/__main__.pyw", type = "onefile", bundle = false, icon = "favicon.ico"}
|
||||
|
||||
[tool.poetry]
|
||||
name = "webp-to-png"
|
||||
@ -14,6 +14,11 @@ pillow = "^10.3.0"
|
||||
pysimplegui = "4.59"
|
||||
|
||||
|
||||
[[tool.poetry.source]]
|
||||
name = "mirrors"
|
||||
url = "https://mirrors.cernet.edu.cn/pypi/web/simple/"
|
||||
priority = "primary"
|
||||
|
||||
[build-system]
|
||||
requires = ["poetry-core"]
|
||||
build-backend = "poetry.core.masonry.api"
|
||||
|
@ -32,7 +32,7 @@ def main() -> None:
|
||||
else : sg.popup("你还没有选择路径!")
|
||||
elif event == "bar":
|
||||
print("freshing bar")
|
||||
bar.update(current_count=value["bar"]["current_count"])
|
||||
# bar.update(current_count=value["bar"]["current_count"])
|
||||
# window.refresh()
|
||||
|
||||
|
||||
|
@ -23,5 +23,5 @@ def convert_webp_to_png(webp_dir:str, png_dir:str,window:Any)->None:
|
||||
# 更新进度条
|
||||
times += 1
|
||||
progress = int(times/nums*100)
|
||||
window.write_event_value("bar",{"current_count":progress} )
|
||||
window["bar"].update(current_count=progress)
|
||||
print("Conversion completed.")
|
Loading…
Reference in New Issue
Block a user