Skip to content

Commit 40664ad

Browse files
committed
Version 0.2.0
新功能: - 添加数据/二进制文件
1 parent 8f33088 commit 40664ad

File tree

5 files changed

+19
-19
lines changed

5 files changed

+19
-19
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "py2exe-gui"
3-
version = "0.1.13"
3+
version = "0.2.0"
44
description = "GUI for PyInstaller, based on PySide6"
55
keywords = ["PyInstaller", "GUI", "PySide6"]
66
authors = ["muzing <[email protected]>"]

src/py2exe_gui/Constants/app_constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class AppConstant:
1919
"""
2020

2121
NAME = "Py2exe-GUI"
22-
VERSION = "0.1.13"
22+
VERSION = "0.2.0"
2323
AUTHORS = ["muzing <[email protected]>"]
2424
LICENSE = "GPL-3.0-or-later"
2525
HOME_PAGE = APP_URLs["HOME_PAGE"]

src/py2exe_gui/Core/packaging_task.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# For details: https://github.com/muziing/Py2exe-GUI/blob/main/README.md#license
33

44
from pathlib import Path
5-
from typing import Optional
5+
from typing import Any, Optional
66

77
from PySide6 import QtCore
88

@@ -40,7 +40,7 @@ def __init__(self, parent: Optional[QtCore.QObject] = None) -> None:
4040
self.clean: Optional[bool] = None
4141

4242
@QtCore.Slot(tuple)
43-
def handle_option(self, option: tuple[PyinstallerArgs, str]):
43+
def handle_option(self, option: tuple[PyinstallerArgs, Any]):
4444
"""
4545
处理用户在界面选择的打包选项,进行有效性验证并保存 \n
4646
:param option: 选项

src/py2exe_gui/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# Licensed under the GPLv3 License: https://www.gnu.org/licenses/gpl-3.0.html
22
# For details: https://github.com/muziing/Py2exe-GUI/blob/main/README.md#license
33

4-
__version__ = "0.1.13"
4+
__version__ = "0.2.0"

src/py2exe_gui/__main__.py

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ def _connect_slots(self) -> None:
3535
连接各种信号与槽 \n
3636
"""
3737

38+
self._connect_pyenv_change()
3839
self._connect_run_pkg_btn_slot()
3940
self._connect_mul_btn_slot(self.subprocess_dlg)
40-
self._connect_pyenv_change()
4141

4242
self.center_widget.option_selected.connect(self.packaging_task.handle_option)
4343
self.packaging_task.option_set.connect(self.packager.set_pyinstaller_args)
@@ -70,6 +70,19 @@ def _connect_pyenv_change(self):
7070
)
7171
)
7272

73+
def _connect_run_pkg_btn_slot(self):
74+
@Slot()
75+
def run_packaging() -> None:
76+
"""
77+
“运行打包”按钮的槽函数 \n
78+
"""
79+
80+
# 先显示对话框窗口,后运行子进程,确保调试信息/错误信息能被直观显示
81+
self.subprocess_dlg.show()
82+
self.packager.run_packaging_process()
83+
84+
self.center_widget.run_packaging_btn.clicked.connect(run_packaging)
85+
7386
def _connect_mul_btn_slot(self, subprocess_dlg):
7487
@Slot()
7588
def handle_multifunction() -> None:
@@ -90,19 +103,6 @@ def handle_multifunction() -> None:
90103
# 连接信号与槽
91104
subprocess_dlg.multifunction_btn.clicked.connect(handle_multifunction)
92105

93-
def _connect_run_pkg_btn_slot(self):
94-
@Slot()
95-
def run_packaging() -> None:
96-
"""
97-
“运行打包”按钮的槽函数 \n
98-
"""
99-
100-
# 先显示对话框窗口,后运行子进程,确保调试信息/错误信息能被直观显示
101-
self.subprocess_dlg.show()
102-
self.packager.run_packaging_process()
103-
104-
self.center_widget.run_packaging_btn.clicked.connect(run_packaging)
105-
106106
def closeEvent(self, event: QCloseEvent) -> None:
107107
"""
108108
重写关闭事件,进行收尾清理 \n

0 commit comments

Comments
 (0)