Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update stable and dev version #65

Merged
merged 1 commit into from
Aug 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions frontengine/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
]
4 changes: 2 additions & 2 deletions frontengine/ui/main/main_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "[email protected]" },
]
Expand Down
2 changes: 1 addition & 1 deletion dev.toml → stable.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "[email protected]" },
Expand Down
4 changes: 2 additions & 2 deletions tests/unit_test/start/extend_front_engine.py
Original file line number Diff line number Diff line change
@@ -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):
Expand All @@ -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)