je-editor 0.0.119__tar.gz → 0.0.121__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {je_editor-0.0.119 → je_editor-0.0.121}/PKG-INFO +1 -1
- {je_editor-0.0.119 → je_editor-0.0.121}/je_editor/pyside_ui/code_process/code_exec.py +15 -0
- {je_editor-0.0.119 → je_editor-0.0.121}/je_editor/pyside_ui/main_ui/editor_main_ui/main_editor.py +1 -2
- {je_editor-0.0.119 → je_editor-0.0.121}/je_editor/pyside_ui/menu/menu_bar/run_menu/build_run_menu.py +2 -2
- {je_editor-0.0.119 → je_editor-0.0.121}/je_editor.egg-info/PKG-INFO +1 -1
- {je_editor-0.0.119 → je_editor-0.0.121}/je_editor.egg-info/requires.txt +0 -1
- {je_editor-0.0.119 → je_editor-0.0.121}/pyproject.toml +2 -2
- {je_editor-0.0.119 → je_editor-0.0.121}/LICENSE +0 -0
- {je_editor-0.0.119 → je_editor-0.0.121}/README.md +0 -0
- {je_editor-0.0.119 → je_editor-0.0.121}/je_editor/__init__.py +0 -0
- {je_editor-0.0.119 → je_editor-0.0.121}/je_editor/__main__.py +0 -0
- {je_editor-0.0.119 → je_editor-0.0.121}/je_editor/pyside_ui/__init__.py +0 -0
- {je_editor-0.0.119 → je_editor-0.0.121}/je_editor/pyside_ui/auto_save/__init__.py +0 -0
- {je_editor-0.0.119 → je_editor-0.0.121}/je_editor/pyside_ui/auto_save/auto_save_thread.py +0 -0
- {je_editor-0.0.119 → je_editor-0.0.121}/je_editor/pyside_ui/code_editor/__init__.py +0 -0
- {je_editor-0.0.119 → je_editor-0.0.121}/je_editor/pyside_ui/code_editor/code_edit_plaintext.py +0 -0
- {je_editor-0.0.119 → je_editor-0.0.121}/je_editor/pyside_ui/code_process/__init__.py +0 -0
- {je_editor-0.0.119 → je_editor-0.0.121}/je_editor/pyside_ui/code_result/__init__.py +0 -0
- {je_editor-0.0.119 → je_editor-0.0.121}/je_editor/pyside_ui/code_result/code_record.py +0 -0
- {je_editor-0.0.119 → je_editor-0.0.121}/je_editor/pyside_ui/colors/__init__.py +0 -0
- {je_editor-0.0.119 → je_editor-0.0.121}/je_editor/pyside_ui/colors/global_color.py +0 -0
- {je_editor-0.0.119 → je_editor-0.0.121}/je_editor/pyside_ui/complete_list/__init__.py +0 -0
- {je_editor-0.0.119 → je_editor-0.0.121}/je_editor/pyside_ui/complete_list/total_complete_list.py +0 -0
- {je_editor-0.0.119 → je_editor-0.0.121}/je_editor/pyside_ui/file_dialog/__init__.py +0 -0
- {je_editor-0.0.119 → je_editor-0.0.121}/je_editor/pyside_ui/file_dialog/open_file_dialog.py +0 -0
- {je_editor-0.0.119 → je_editor-0.0.121}/je_editor/pyside_ui/file_dialog/save_file_dialog.py +0 -0
- {je_editor-0.0.119 → je_editor-0.0.121}/je_editor/pyside_ui/main_ui/__init__.py +0 -0
- {je_editor-0.0.119 → je_editor-0.0.121}/je_editor/pyside_ui/main_ui/editor_main_ui/__init__.py +0 -0
- {je_editor-0.0.119 → je_editor-0.0.121}/je_editor/pyside_ui/main_ui_setting/__init__.py +0 -0
- {je_editor-0.0.119 → je_editor-0.0.121}/je_editor/pyside_ui/main_ui_setting/ui_setting.py +0 -0
- {je_editor-0.0.119 → je_editor-0.0.121}/je_editor/pyside_ui/menu/__init__.py +0 -0
- {je_editor-0.0.119 → je_editor-0.0.121}/je_editor/pyside_ui/menu/menu_bar/__init__.py +0 -0
- {je_editor-0.0.119 → je_editor-0.0.121}/je_editor/pyside_ui/menu/menu_bar/check_style_menu/__init__.py +0 -0
- {je_editor-0.0.119 → je_editor-0.0.121}/je_editor/pyside_ui/menu/menu_bar/check_style_menu/build_check_style_menu.py +0 -0
- {je_editor-0.0.119 → je_editor-0.0.121}/je_editor/pyside_ui/menu/menu_bar/file_menu/__init__.py +0 -0
- {je_editor-0.0.119 → je_editor-0.0.121}/je_editor/pyside_ui/menu/menu_bar/file_menu/build_file_menu.py +0 -0
- {je_editor-0.0.119 → je_editor-0.0.121}/je_editor/pyside_ui/menu/menu_bar/help_menu/__init__.py +0 -0
- {je_editor-0.0.119 → je_editor-0.0.121}/je_editor/pyside_ui/menu/menu_bar/help_menu/build_help_menu.py +0 -0
- {je_editor-0.0.119 → je_editor-0.0.121}/je_editor/pyside_ui/menu/menu_bar/run_menu/__init__.py +0 -0
- {je_editor-0.0.119 → je_editor-0.0.121}/je_editor/pyside_ui/menu/menu_bar/set_menu_bar.py +0 -0
- {je_editor-0.0.119 → je_editor-0.0.121}/je_editor/pyside_ui/menu/menu_bar/venv_menu/__init__.py +0 -0
- {je_editor-0.0.119 → je_editor-0.0.121}/je_editor/pyside_ui/menu/menu_bar/venv_menu/build_venv_menu.py +0 -0
- {je_editor-0.0.119 → je_editor-0.0.121}/je_editor/pyside_ui/search_ui/__init__.py +0 -0
- {je_editor-0.0.119 → je_editor-0.0.121}/je_editor/pyside_ui/search_ui/search_error_box.py +0 -0
- {je_editor-0.0.119 → je_editor-0.0.121}/je_editor/pyside_ui/search_ui/search_text_box.py +0 -0
- {je_editor-0.0.119 → je_editor-0.0.121}/je_editor/pyside_ui/shell_process/__init__.py +0 -0
- {je_editor-0.0.119 → je_editor-0.0.121}/je_editor/pyside_ui/shell_process/shell_exec.py +0 -0
- {je_editor-0.0.119 → je_editor-0.0.121}/je_editor/pyside_ui/syntax/__init__.py +0 -0
- {je_editor-0.0.119 → je_editor-0.0.121}/je_editor/pyside_ui/syntax/python_syntax.py +0 -0
- {je_editor-0.0.119 → je_editor-0.0.121}/je_editor/pyside_ui/treeview/__init__.py +0 -0
- {je_editor-0.0.119 → je_editor-0.0.121}/je_editor/pyside_ui/treeview/project_treeview/__init__.py +0 -0
- {je_editor-0.0.119 → je_editor-0.0.121}/je_editor/pyside_ui/treeview/project_treeview/set_project_treeview.py +0 -0
- {je_editor-0.0.119 → je_editor-0.0.121}/je_editor/pyside_ui/user_setting/__init__.py +0 -0
- {je_editor-0.0.119 → je_editor-0.0.121}/je_editor/pyside_ui/user_setting/user_setting_file.py +0 -0
- {je_editor-0.0.119 → je_editor-0.0.121}/je_editor/start_editor.py +0 -0
- {je_editor-0.0.119 → je_editor-0.0.121}/je_editor/utils/__init__.py +0 -0
- {je_editor-0.0.119 → je_editor-0.0.121}/je_editor/utils/encodings/__init__.py +0 -0
- {je_editor-0.0.119 → je_editor-0.0.121}/je_editor/utils/encodings/python_encodings.py +0 -0
- {je_editor-0.0.119 → je_editor-0.0.121}/je_editor/utils/exception/__init__.py +0 -0
- {je_editor-0.0.119 → je_editor-0.0.121}/je_editor/utils/exception/exception_tags.py +0 -0
- {je_editor-0.0.119 → je_editor-0.0.121}/je_editor/utils/exception/exceptions.py +0 -0
- {je_editor-0.0.119 → je_editor-0.0.121}/je_editor/utils/file/__init__.py +0 -0
- {je_editor-0.0.119 → je_editor-0.0.121}/je_editor/utils/file/open/__init__.py +0 -0
- {je_editor-0.0.119 → je_editor-0.0.121}/je_editor/utils/file/open/open_file.py +0 -0
- {je_editor-0.0.119 → je_editor-0.0.121}/je_editor/utils/file/save/__init__.py +0 -0
- {je_editor-0.0.119 → je_editor-0.0.121}/je_editor/utils/file/save/save_file.py +0 -0
- {je_editor-0.0.119 → je_editor-0.0.121}/je_editor/utils/json/__init__.py +0 -0
- {je_editor-0.0.119 → je_editor-0.0.121}/je_editor/utils/json/json_file.py +0 -0
- {je_editor-0.0.119 → je_editor-0.0.121}/je_editor/utils/json_format/__init__.py +0 -0
- {je_editor-0.0.119 → je_editor-0.0.121}/je_editor/utils/json_format/json_process.py +0 -0
- {je_editor-0.0.119 → je_editor-0.0.121}/je_editor/utils/redirect_manager/__init__.py +0 -0
- {je_editor-0.0.119 → je_editor-0.0.121}/je_editor/utils/redirect_manager/redirect_manager_class.py +0 -0
- {je_editor-0.0.119 → je_editor-0.0.121}/je_editor/utils/venv_check/__init__.py +0 -0
- {je_editor-0.0.119 → je_editor-0.0.121}/je_editor/utils/venv_check/check_venv.py +0 -0
- {je_editor-0.0.119 → je_editor-0.0.121}/je_editor.egg-info/SOURCES.txt +0 -0
- {je_editor-0.0.119 → je_editor-0.0.121}/je_editor.egg-info/dependency_links.txt +0 -0
- {je_editor-0.0.119 → je_editor-0.0.121}/je_editor.egg-info/top_level.txt +0 -0
- {je_editor-0.0.119 → je_editor-0.0.121}/setup.cfg +0 -0
@@ -4,6 +4,7 @@ import subprocess
|
|
4
4
|
import sys
|
5
5
|
from pathlib import Path
|
6
6
|
from threading import Thread
|
7
|
+
from typing import List
|
7
8
|
|
8
9
|
from PySide6.QtCore import QTimer
|
9
10
|
from PySide6.QtWidgets import QMainWindow, QTextEdit
|
@@ -14,6 +15,19 @@ from je_editor.utils.exception.exceptions import JEditorException
|
|
14
15
|
from je_editor.utils.venv_check.check_venv import check_and_choose_venv
|
15
16
|
|
16
17
|
|
18
|
+
class RunInstanceManager(object):
|
19
|
+
|
20
|
+
def __init__(self):
|
21
|
+
self.instance_list: List[subprocess.Popen] = list()
|
22
|
+
|
23
|
+
def close_all_instance(self):
|
24
|
+
for process in self.instance_list:
|
25
|
+
process.terminate()
|
26
|
+
|
27
|
+
|
28
|
+
run_instance_manager = RunInstanceManager()
|
29
|
+
|
30
|
+
|
17
31
|
class ExecManager(object):
|
18
32
|
|
19
33
|
def __init__(
|
@@ -99,6 +113,7 @@ class ExecManager(object):
|
|
99
113
|
self.timer.setInterval(1)
|
100
114
|
self.timer.timeout.connect(self.pull_text)
|
101
115
|
self.timer.start()
|
116
|
+
run_instance_manager.instance_list.append(self.process)
|
102
117
|
except Exception as error:
|
103
118
|
self.code_result.setTextColor(error_color)
|
104
119
|
self.code_result.append(str(error))
|
{je_editor-0.0.119 → je_editor-0.0.121}/je_editor/pyside_ui/main_ui/editor_main_ui/main_editor.py
RENAMED
@@ -5,7 +5,7 @@ from pathlib import Path
|
|
5
5
|
from PySide6.QtCore import QTimer
|
6
6
|
from PySide6.QtGui import QFontDatabase, QAction, QIcon
|
7
7
|
from PySide6.QtWidgets import QMainWindow, QSystemTrayIcon, QWidget, QGridLayout, QTabWidget
|
8
|
-
from frontengine import FrontEngineMainUI
|
8
|
+
from frontengine import FrontEngineMainUI
|
9
9
|
from qt_material import QtStyleTools
|
10
10
|
|
11
11
|
from je_editor.pyside_ui.auto_save.auto_save_thread import SaveThread
|
@@ -84,7 +84,6 @@ class EditorMain(QMainWindow, QtStyleTools):
|
|
84
84
|
self.add_style_menu()
|
85
85
|
# TAB Add
|
86
86
|
self.tab_widget.addTab(self.main_widget, "Editor")
|
87
|
-
self.tab_widget.addTab(ChatSceneUI(), "GPT")
|
88
87
|
self.tab_widget.addTab(FrontEngineMainUI(), "FrontEngine")
|
89
88
|
self.setCentralWidget(self.tab_widget)
|
90
89
|
# If debug open 10s and close
|
{je_editor-0.0.119 → je_editor-0.0.121}/je_editor/pyside_ui/menu/menu_bar/run_menu/build_run_menu.py
RENAMED
@@ -1,7 +1,7 @@
|
|
1
1
|
from PySide6.QtGui import QAction, QKeySequence, Qt
|
2
2
|
from PySide6.QtWidgets import QMainWindow, QMessageBox
|
3
3
|
|
4
|
-
from je_editor.pyside_ui.code_process.code_exec import
|
4
|
+
from je_editor.pyside_ui.code_process.code_exec import ExecManager, run_instance_manager
|
5
5
|
from je_editor.pyside_ui.file_dialog.save_file_dialog import choose_file_get_save_file_path
|
6
6
|
from je_editor.pyside_ui.shell_process.shell_exec import ShellManager
|
7
7
|
|
@@ -74,7 +74,7 @@ def shell_exec(ui_we_want_to_set: QMainWindow) -> None:
|
|
74
74
|
|
75
75
|
|
76
76
|
def stop_program() -> None:
|
77
|
-
|
77
|
+
run_instance_manager.close_all_instance()
|
78
78
|
|
79
79
|
|
80
80
|
def clean_result(ui_we_want_to_set: QMainWindow) -> None:
|
@@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"
|
|
6
6
|
|
7
7
|
[project]
|
8
8
|
name = "je_editor"
|
9
|
-
version = "0.0.
|
9
|
+
version = "0.0.121"
|
10
10
|
authors = [
|
11
11
|
{ name = "JE-Chen", email = "jechenmailman@gmail.com" },
|
12
12
|
]
|
@@ -14,7 +14,7 @@ description = "JEditor is basic but powerful editor include GPT"
|
|
14
14
|
requires-python = ">=3.8"
|
15
15
|
license = { text = "MIT" }
|
16
16
|
dependencies = [
|
17
|
-
"PySide6", "qt-material", "yapf", "frontengine"
|
17
|
+
"PySide6", "qt-material", "yapf", "frontengine"
|
18
18
|
]
|
19
19
|
classifiers = [
|
20
20
|
"Programming Language :: Python :: 3.8",
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{je_editor-0.0.119 → je_editor-0.0.121}/je_editor/pyside_ui/code_editor/code_edit_plaintext.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{je_editor-0.0.119 → je_editor-0.0.121}/je_editor/pyside_ui/complete_list/total_complete_list.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{je_editor-0.0.119 → je_editor-0.0.121}/je_editor/pyside_ui/main_ui/editor_main_ui/__init__.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{je_editor-0.0.119 → je_editor-0.0.121}/je_editor/pyside_ui/menu/menu_bar/file_menu/__init__.py
RENAMED
File without changes
|
File without changes
|
{je_editor-0.0.119 → je_editor-0.0.121}/je_editor/pyside_ui/menu/menu_bar/help_menu/__init__.py
RENAMED
File without changes
|
File without changes
|
{je_editor-0.0.119 → je_editor-0.0.121}/je_editor/pyside_ui/menu/menu_bar/run_menu/__init__.py
RENAMED
File without changes
|
File without changes
|
{je_editor-0.0.119 → je_editor-0.0.121}/je_editor/pyside_ui/menu/menu_bar/venv_menu/__init__.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{je_editor-0.0.119 → je_editor-0.0.121}/je_editor/pyside_ui/treeview/project_treeview/__init__.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{je_editor-0.0.119 → je_editor-0.0.121}/je_editor/pyside_ui/user_setting/user_setting_file.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{je_editor-0.0.119 → je_editor-0.0.121}/je_editor/utils/redirect_manager/redirect_manager_class.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|