From 3a047f6276746fdceaedd942ebb2ccb6685fd0b1 Mon Sep 17 00:00:00 2001 From: JE-Chen45 Date: Thu, 10 Aug 2023 17:53:48 +0800 Subject: [PATCH] Update stable and dev version Update stable and dev version * Change EXTEND_TAB name from EDITOR_EXTEND to FrontEngine_EXTEND_TAB --- frontengine/__init__.py | 4 ++-- frontengine/ui/main/main_ui.py | 4 ++-- pyproject.toml | 4 ++-- dev.toml => stable.toml | 2 +- tests/unit_test/start/extend_front_engine.py | 4 ++-- 5 files changed, 9 insertions(+), 9 deletions(-) rename dev.toml => stable.toml (97%) diff --git a/frontengine/__init__.py b/frontengine/__init__.py index e6a0490..27ff500 100644 --- a/frontengine/__init__.py +++ b/frontengine/__init__.py @@ -20,12 +20,12 @@ from frontengine.ui.main.main_ui import FrontEngineMainUI from frontengine.ui.setting.scene_setting.scene_setting_ui import SceneControlSettingUI from frontengine.ui.setting.chat_scene.chat_scene_setting import ChatSceneUI -from frontengine.ui.main.main_ui import EDITOR_EXTEND_TAB +from frontengine.ui.main.main_ui import FrontEngine_EXTEND_TAB __all__ = [ "start_front_engine", "GifWidget", "SoundPlayer", "SoundEffectWidget", "TextWidget", "WebWidget", "ImageWidget", "VideoWidget", "language_wrapper", "load_extend_ui_file", "load_ui_file", "TextSettingUI", "WEBSettingUI", "GIFSettingUI", "ImageSettingUI", "SoundPlayerSettingUI", "VideoSettingUI", "ControlCenterUI", "SceneSettingUI", "FrontEngineMainUI", "SceneControlSettingUI", - "ChatSceneUI", "EDITOR_EXTEND_TAB" + "ChatSceneUI", "FrontEngine_EXTEND_TAB" ] diff --git a/frontengine/ui/main/main_ui.py b/frontengine/ui/main/main_ui.py index a4dbc79..619c44b 100644 --- a/frontengine/ui/main/main_ui.py +++ b/frontengine/ui/main/main_ui.py @@ -22,7 +22,7 @@ from frontengine.user_setting.user_setting_file import write_user_setting, read_user_setting, user_setting_dict from frontengine.utils.multi_language.language_wrapper import language_wrapper -EDITOR_EXTEND_TAB: Dict[str, Type[QWidget]] = {} +FrontEngine_EXTEND_TAB: Dict[str, Type[QWidget]] = {} class FrontEngineMainUI(QMainWindow, QtStyleTools): @@ -96,7 +96,7 @@ def __init__(self, debug: bool = False): self.control_center_ui, language_wrapper.language_word_dict.get("tab_control_center_text") ) - for widget_name, widget in EDITOR_EXTEND_TAB.items(): + for widget_name, widget in FrontEngine_EXTEND_TAB.items(): self.tab_widget.addTab(widget(), widget_name) self.setCentralWidget(self.tab_widget) # Set Icon diff --git a/pyproject.toml b/pyproject.toml index bb12b83..5b4fd96 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,8 +5,8 @@ requires = ["setuptools>=61.0"] build-backend = "setuptools.build_meta" [project] -name = "frontengine" -version = "0.0.39" +name = "frontengine_dev" +version = "0.0.41" authors = [ { name = "JE-Chen", email = "jechenmailman@gmail.com" }, ] diff --git a/dev.toml b/stable.toml similarity index 97% rename from dev.toml rename to stable.toml index cd669c2..6b70ebe 100644 --- a/dev.toml +++ b/stable.toml @@ -5,7 +5,7 @@ requires = ["setuptools>=61.0"] build-backend = "setuptools.build_meta" [project] -name = "frontengine_dev" +name = "frontengine" version = "0.0.40" authors = [ { name = "JE-Chen", email = "jechenmailman@gmail.com" }, diff --git a/tests/unit_test/start/extend_front_engine.py b/tests/unit_test/start/extend_front_engine.py index 052ceb0..b2a7703 100644 --- a/tests/unit_test/start/extend_front_engine.py +++ b/tests/unit_test/start/extend_front_engine.py @@ -1,6 +1,6 @@ from PySide6.QtWidgets import QWidget, QGridLayout, QLineEdit, QPushButton, QLabel -from frontengine import start_front_engine, EDITOR_EXTEND_TAB +from frontengine import start_front_engine, FrontEngine_EXTEND_TAB class TestUI(QWidget): @@ -22,6 +22,6 @@ def show_input_text(self): self.label.setText(self.line_edit.text()) -EDITOR_EXTEND_TAB.update({"test": TestUI}) +FrontEngine_EXTEND_TAB.update({"test": TestUI}) start_front_engine(debug=True)