This commit is contained in:
ZtRXR 2024-05-05 18:45:50 +08:00
parent 4a0a17b434
commit a30664b060
3 changed files with 13 additions and 3 deletions

View File

@ -1,5 +1,10 @@
[tool.poetry-pyinstaller-plugin.scripts]
webp_to_png = { source = "webp_to_png/__main__.pyw", type = "onefile", bundle = false, icon = "favicon.ico"}
webp_to_png = { source = "webp_to_png/__main__.pyw", type = "onefile", bundle = false, icon="../../../../favicon.ico"}
[tool.poetry-pyinstaller-plugin.collect]
# Collect all submodules, data files & binaries for 'package_A' and 'package_B'
data = ["webp_to_png"]
[tool.poetry]
name = "webp-to-png"

View File

@ -1,6 +1,6 @@
import threading
import PySimpleGUI as sg
from tools import convert_webp_to_png
from webp_to_png.tools import convert_webp_to_png
layout = [
[sg.Text("请选择webp文件夹:"),sg.Text("未选择文件夹"),sg.FolderBrowse("点击选择文件夹",key="input_folder")],
@ -9,7 +9,12 @@ layout = [
[sg.Text("完成进度:"),sg.ProgressBar(max_value=100,key="bar",size=(50,20),)]
]
window = sg.Window("批量webp格式转化为png格式 -by Zengtudor",layout,size=(800,400),resizable=True)
window = sg.Window("批量webp格式转化为png格式 -by Zengtudor",
layout,
size=(800,400),
resizable=True,
icon="favicon.ico"
)
bar = window["bar"]
def main() -> None:

BIN
webp_to_png/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 162 KiB