Skip to content

Commit

Permalink
Version 0.2.0
Browse files Browse the repository at this point in the history
新功能:
- 添加数据/二进制文件
  • Loading branch information
muziing committed Dec 20, 2023
1 parent 8f33088 commit 40664ad
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "py2exe-gui"
version = "0.1.13"
version = "0.2.0"
description = "GUI for PyInstaller, based on PySide6"
keywords = ["PyInstaller", "GUI", "PySide6"]
authors = ["muzing <muzi2001@foxmail.com>"]
Expand Down
2 changes: 1 addition & 1 deletion src/py2exe_gui/Constants/app_constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class AppConstant:
"""

NAME = "Py2exe-GUI"
VERSION = "0.1.13"
VERSION = "0.2.0"
AUTHORS = ["muzing <muzi2001@foxmail.com>"]
LICENSE = "GPL-3.0-or-later"
HOME_PAGE = APP_URLs["HOME_PAGE"]
4 changes: 2 additions & 2 deletions src/py2exe_gui/Core/packaging_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# For details: https://github.com/muziing/Py2exe-GUI/blob/main/README.md#license

from pathlib import Path
from typing import Optional
from typing import Any, Optional

from PySide6 import QtCore

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

@QtCore.Slot(tuple)
def handle_option(self, option: tuple[PyinstallerArgs, str]):
def handle_option(self, option: tuple[PyinstallerArgs, Any]):
"""
处理用户在界面选择的打包选项,进行有效性验证并保存 \n
:param option: 选项
Expand Down
2 changes: 1 addition & 1 deletion src/py2exe_gui/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Licensed under the GPLv3 License: https://www.gnu.org/licenses/gpl-3.0.html
# For details: https://github.com/muziing/Py2exe-GUI/blob/main/README.md#license

__version__ = "0.1.13"
__version__ = "0.2.0"
28 changes: 14 additions & 14 deletions src/py2exe_gui/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ def _connect_slots(self) -> None:
连接各种信号与槽 \n
"""

self._connect_pyenv_change()
self._connect_run_pkg_btn_slot()
self._connect_mul_btn_slot(self.subprocess_dlg)
self._connect_pyenv_change()

self.center_widget.option_selected.connect(self.packaging_task.handle_option)
self.packaging_task.option_set.connect(self.packager.set_pyinstaller_args)
Expand Down Expand Up @@ -70,6 +70,19 @@ def _connect_pyenv_change(self):
)
)

def _connect_run_pkg_btn_slot(self):
@Slot()
def run_packaging() -> None:
"""
“运行打包”按钮的槽函数 \n
"""

# 先显示对话框窗口,后运行子进程,确保调试信息/错误信息能被直观显示
self.subprocess_dlg.show()
self.packager.run_packaging_process()

self.center_widget.run_packaging_btn.clicked.connect(run_packaging)

def _connect_mul_btn_slot(self, subprocess_dlg):
@Slot()
def handle_multifunction() -> None:
Expand All @@ -90,19 +103,6 @@ def handle_multifunction() -> None:
# 连接信号与槽
subprocess_dlg.multifunction_btn.clicked.connect(handle_multifunction)

def _connect_run_pkg_btn_slot(self):
@Slot()
def run_packaging() -> None:
"""
“运行打包”按钮的槽函数 \n
"""

# 先显示对话框窗口,后运行子进程,确保调试信息/错误信息能被直观显示
self.subprocess_dlg.show()
self.packager.run_packaging_process()

self.center_widget.run_packaging_btn.clicked.connect(run_packaging)

def closeEvent(self, event: QCloseEvent) -> None:
"""
重写关闭事件,进行收尾清理 \n
Expand Down

0 comments on commit 40664ad

Please sign in to comment.