From 4a0a17b434746066ec24d5645783e9cfe624e2f6 Mon Sep 17 00:00:00 2001 From: ZtRXR Date: Sun, 5 May 2024 17:50:32 +0800 Subject: [PATCH] update --- favicon.ico | Bin 0 -> 165662 bytes pyproject.toml | 7 ++++++- webp_to_png/__main__.pyw | 2 +- webp_to_png/tools.py | 2 +- 4 files changed, 8 insertions(+), 3 deletions(-) create mode 100644 favicon.ico diff --git a/favicon.ico b/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..0853375db0955598f262202d85168153cd5d909f GIT binary patch literal 165662 zcmeI5zi#Bn5r?_wz|Nc*r%hJjy~PUf1KcZUft``y%;5!wbdiCJd{3bFxJ1glxibR? z3GfSSxWQuSZVuV(o@q_4&cCg9Jsl;`KzR5zu#Z1$2~ILx&yo2?kCfe zrJw~qw%&9r(gz5zB-*u09Iu8%g(|=gdVsADS7lY{12$|3Ano z_|VD-=Z!_#SjF{~Wutj$y4K>{u{ay6x;iCyJ^0958yLy!Z|>RQBe%nP{yvi5$@%vHAM<$5d1M}+ zr``*EOzr6F^TEjL-bjtW$Gnw+k$L?dyEph4>tO%wVWhujOKkxk%Qz1s%lO`Rukg{= zvFX-_k?Fk5H4}W~a<<#NFw)JZrPhLvrJQf~3nQ%;(q4W1`0>ZSi($$>%5#gE^FMv( zwd*=yhmpRH$y^^k^3?@K@_9Sg%RQBe%oc)0p4ke0zY8eBSyqoAXHj@0i=@XPNrGNPjJa4;9~O1|!mGIL%KC zA4$zVQ#bVasBq8GasBsUjHsr1;>uCJD300 z9DG=nz4(9;7+D^TDudbh;QgCu#ktms+9GCfE4kXJ@g?p{ zj#0^cSiST@yz2N8_hsr)>3mqd^g_Jq_!9SJ%F#9OVfE4r@v7rX+?T0F*TRR@OE1K$ zjxTXvrWjolA675D5U)DE#C;h%x;8$nUV0&3b$p5YGG=s*d|18oLcHqu68B~3=vw)( zdg+CD)$t|n%aGAE^I`SU3-PMsOWc>fqig5G>ZKRrRmYdOFMUS0z=zdKFT|^kFL7VG z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w}7V=;kEp6(doCh)d%`LzPwb}qkGpo_Wu+yqVi>{0VwrOy-S zwu=aKF_)j4pq(=!&}|nH*v4FbPGB2571+jFfz3Ixjk)|@PGe5s(`n2JbcVKbI)RZq z8-d?qv0C8Q`V{Ha)^*sI=G5x>S=ItSH^uT}wZIp5t>Wcb3w)}Nm%;vOf%opx!P~AD zSTwfy`#T71?OFcb+LcjH9rRz#4h%;jeQ9&q+P7)JahSVXV*DAnwWjIdw0!Q{i{0nS2>w~ z`tn?!hwaLH|2jIHvwZU89dGyIU$-A^_xZiqY4bRWeQn0=^HIzX5i=FF{v1E>3}5Jp s)`1Q2V1Hfn54l$4lNoE?gCN$HJ-08$_LE0bhm(LA&=R8ur|ZH01AwF|5&!@I literal 0 HcmV?d00001 diff --git a/pyproject.toml b/pyproject.toml index dcae4e3..38f9c15 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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" diff --git a/webp_to_png/__main__.pyw b/webp_to_png/__main__.pyw index c39f9ef..b995376 100644 --- a/webp_to_png/__main__.pyw +++ b/webp_to_png/__main__.pyw @@ -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() diff --git a/webp_to_png/tools.py b/webp_to_png/tools.py index b20ef8c..bb66cd2 100644 --- a/webp_to_png/tools.py +++ b/webp_to_png/tools.py @@ -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.") \ No newline at end of file