je-editor 0.0.177__tar.gz → 0.0.180__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
Files changed (111) hide show
  1. {je_editor-0.0.177 → je_editor-0.0.180}/PKG-INFO +2 -1
  2. {je_editor-0.0.177 → je_editor-0.0.180}/je_editor/__init__.py +1 -1
  3. {je_editor-0.0.177 → je_editor-0.0.180}/je_editor/pyside_ui/code/code_format/pep8_format.py +1 -3
  4. {je_editor-0.0.177 → je_editor-0.0.180}/je_editor/pyside_ui/code/code_process/code_exec.py +7 -6
  5. {je_editor-0.0.177 → je_editor-0.0.180}/je_editor/pyside_ui/code/plaintext_code_edit/code_edit_plaintext.py +2 -6
  6. {je_editor-0.0.177 → je_editor-0.0.180}/je_editor/pyside_ui/code/syntax/syntax_setting.py +1 -1
  7. {je_editor-0.0.177 → je_editor-0.0.180}/je_editor/pyside_ui/main_ui/main_editor.py +1 -1
  8. {je_editor-0.0.177 → je_editor-0.0.180}/je_editor/pyside_ui/main_ui/menu/dock_menu/build_dock_menu.py +1 -1
  9. {je_editor-0.0.177 → je_editor-0.0.180}/je_editor/pyside_ui/main_ui/menu/tab_menu/build_tab_menu.py +16 -1
  10. {je_editor-0.0.177 → je_editor-0.0.180}/je_editor/pyside_ui/main_ui/save_settings/setting_utils.py +12 -12
  11. {je_editor-0.0.177 → je_editor-0.0.180}/je_editor/start_editor.py +1 -1
  12. {je_editor-0.0.177 → je_editor-0.0.180}/je_editor/utils/multi_language/english.py +2 -0
  13. {je_editor-0.0.177 → je_editor-0.0.180}/je_editor/utils/multi_language/traditional_chinese.py +2 -0
  14. {je_editor-0.0.177 → je_editor-0.0.180}/je_editor.egg-info/PKG-INFO +3 -2
  15. {je_editor-0.0.177 → je_editor-0.0.180}/je_editor.egg-info/requires.txt +1 -0
  16. {je_editor-0.0.177 → je_editor-0.0.180}/pyproject.toml +2 -2
  17. {je_editor-0.0.177 → je_editor-0.0.180}/LICENSE +0 -0
  18. {je_editor-0.0.177 → je_editor-0.0.180}/README.md +0 -0
  19. {je_editor-0.0.177 → je_editor-0.0.180}/je_editor/__main__.py +0 -0
  20. {je_editor-0.0.177 → je_editor-0.0.180}/je_editor/pyside_ui/__init__.py +0 -0
  21. {je_editor-0.0.177 → je_editor-0.0.180}/je_editor/pyside_ui/browser/__init__.py +0 -0
  22. {je_editor-0.0.177 → je_editor-0.0.180}/je_editor/pyside_ui/browser/browser_download_window.py +0 -0
  23. {je_editor-0.0.177 → je_editor-0.0.180}/je_editor/pyside_ui/browser/browser_serach_lineedit.py +0 -0
  24. {je_editor-0.0.177 → je_editor-0.0.180}/je_editor/pyside_ui/browser/browser_view.py +0 -0
  25. {je_editor-0.0.177 → je_editor-0.0.180}/je_editor/pyside_ui/browser/browser_widget.py +0 -0
  26. {je_editor-0.0.177 → je_editor-0.0.180}/je_editor/pyside_ui/code/__init__.py +0 -0
  27. {je_editor-0.0.177 → je_editor-0.0.180}/je_editor/pyside_ui/code/auto_save/__init__.py +0 -0
  28. {je_editor-0.0.177 → je_editor-0.0.180}/je_editor/pyside_ui/code/auto_save/auto_save_manager.py +0 -0
  29. {je_editor-0.0.177 → je_editor-0.0.180}/je_editor/pyside_ui/code/auto_save/auto_save_thread.py +0 -0
  30. {je_editor-0.0.177 → je_editor-0.0.180}/je_editor/pyside_ui/code/code_format/__init__.py +0 -0
  31. {je_editor-0.0.177 → je_editor-0.0.180}/je_editor/pyside_ui/code/code_process/__init__.py +0 -0
  32. {je_editor-0.0.177 → je_editor-0.0.180}/je_editor/pyside_ui/code/plaintext_code_edit/__init__.py +0 -0
  33. {je_editor-0.0.177 → je_editor-0.0.180}/je_editor/pyside_ui/code/running_process_manager.py +0 -0
  34. {je_editor-0.0.177 → je_editor-0.0.180}/je_editor/pyside_ui/code/shell_process/__init__.py +0 -0
  35. {je_editor-0.0.177 → je_editor-0.0.180}/je_editor/pyside_ui/code/shell_process/shell_exec.py +0 -0
  36. {je_editor-0.0.177 → je_editor-0.0.180}/je_editor/pyside_ui/code/syntax/__init__.py +0 -0
  37. {je_editor-0.0.177 → je_editor-0.0.180}/je_editor/pyside_ui/code/syntax/python_syntax.py +0 -0
  38. {je_editor-0.0.177 → je_editor-0.0.180}/je_editor/pyside_ui/code/textedit_code_result/__init__.py +0 -0
  39. {je_editor-0.0.177 → je_editor-0.0.180}/je_editor/pyside_ui/code/textedit_code_result/code_record.py +0 -0
  40. {je_editor-0.0.177 → je_editor-0.0.180}/je_editor/pyside_ui/dialog/__init__.py +0 -0
  41. {je_editor-0.0.177 → je_editor-0.0.180}/je_editor/pyside_ui/dialog/file_dialog/__init__.py +0 -0
  42. {je_editor-0.0.177 → je_editor-0.0.180}/je_editor/pyside_ui/dialog/file_dialog/create_file_dialog.py +0 -0
  43. {je_editor-0.0.177 → je_editor-0.0.180}/je_editor/pyside_ui/dialog/file_dialog/open_file_dialog.py +0 -0
  44. {je_editor-0.0.177 → je_editor-0.0.180}/je_editor/pyside_ui/dialog/file_dialog/save_file_dialog.py +0 -0
  45. {je_editor-0.0.177 → je_editor-0.0.180}/je_editor/pyside_ui/dialog/search_ui/__init__.py +0 -0
  46. {je_editor-0.0.177 → je_editor-0.0.180}/je_editor/pyside_ui/dialog/search_ui/search_error_box.py +0 -0
  47. {je_editor-0.0.177 → je_editor-0.0.180}/je_editor/pyside_ui/dialog/search_ui/search_text_box.py +0 -0
  48. {je_editor-0.0.177 → je_editor-0.0.180}/je_editor/pyside_ui/main_ui/__init__.py +0 -0
  49. {je_editor-0.0.177 → je_editor-0.0.180}/je_editor/pyside_ui/main_ui/dock/__init__.py +0 -0
  50. {je_editor-0.0.177 → je_editor-0.0.180}/je_editor/pyside_ui/main_ui/dock/destroy_dock.py +0 -0
  51. {je_editor-0.0.177 → je_editor-0.0.180}/je_editor/pyside_ui/main_ui/editor/__init__.py +0 -0
  52. {je_editor-0.0.177 → je_editor-0.0.180}/je_editor/pyside_ui/main_ui/editor/editor_widget.py +0 -0
  53. {je_editor-0.0.177 → je_editor-0.0.180}/je_editor/pyside_ui/main_ui/editor/editor_widget_dock.py +0 -0
  54. {je_editor-0.0.177 → je_editor-0.0.180}/je_editor/pyside_ui/main_ui/editor/process_input.py +0 -0
  55. {je_editor-0.0.177 → je_editor-0.0.180}/je_editor/pyside_ui/main_ui/ipython_widget/__init__.py +0 -0
  56. {je_editor-0.0.177 → je_editor-0.0.180}/je_editor/pyside_ui/main_ui/ipython_widget/rich_jupyter.py +0 -0
  57. {je_editor-0.0.177 → je_editor-0.0.180}/je_editor/pyside_ui/main_ui/menu/__init__.py +0 -0
  58. {je_editor-0.0.177 → je_editor-0.0.180}/je_editor/pyside_ui/main_ui/menu/check_style_menu/__init__.py +0 -0
  59. {je_editor-0.0.177 → je_editor-0.0.180}/je_editor/pyside_ui/main_ui/menu/check_style_menu/build_check_style_menu.py +0 -0
  60. {je_editor-0.0.177 → je_editor-0.0.180}/je_editor/pyside_ui/main_ui/menu/dock_menu/__init__.py +0 -0
  61. {je_editor-0.0.177 → je_editor-0.0.180}/je_editor/pyside_ui/main_ui/menu/file_menu/__init__.py +0 -0
  62. {je_editor-0.0.177 → je_editor-0.0.180}/je_editor/pyside_ui/main_ui/menu/file_menu/build_file_menu.py +0 -0
  63. {je_editor-0.0.177 → je_editor-0.0.180}/je_editor/pyside_ui/main_ui/menu/help_menu/__init__.py +0 -0
  64. {je_editor-0.0.177 → je_editor-0.0.180}/je_editor/pyside_ui/main_ui/menu/help_menu/build_help_menu.py +0 -0
  65. {je_editor-0.0.177 → je_editor-0.0.180}/je_editor/pyside_ui/main_ui/menu/language_menu/__init__.py +0 -0
  66. {je_editor-0.0.177 → je_editor-0.0.180}/je_editor/pyside_ui/main_ui/menu/language_menu/build_language_server.py +0 -0
  67. {je_editor-0.0.177 → je_editor-0.0.180}/je_editor/pyside_ui/main_ui/menu/python_env_menu/__init__.py +0 -0
  68. {je_editor-0.0.177 → je_editor-0.0.180}/je_editor/pyside_ui/main_ui/menu/python_env_menu/build_venv_menu.py +0 -0
  69. {je_editor-0.0.177 → je_editor-0.0.180}/je_editor/pyside_ui/main_ui/menu/run_menu/__init__.py +0 -0
  70. {je_editor-0.0.177 → je_editor-0.0.180}/je_editor/pyside_ui/main_ui/menu/run_menu/build_run_menu.py +0 -0
  71. {je_editor-0.0.177 → je_editor-0.0.180}/je_editor/pyside_ui/main_ui/menu/run_menu/under_run_menu/__init__.py +0 -0
  72. {je_editor-0.0.177 → je_editor-0.0.180}/je_editor/pyside_ui/main_ui/menu/run_menu/under_run_menu/build_debug_menu.py +0 -0
  73. {je_editor-0.0.177 → je_editor-0.0.180}/je_editor/pyside_ui/main_ui/menu/run_menu/under_run_menu/build_program_menu.py +0 -0
  74. {je_editor-0.0.177 → je_editor-0.0.180}/je_editor/pyside_ui/main_ui/menu/run_menu/under_run_menu/build_shell_menu.py +0 -0
  75. {je_editor-0.0.177 → je_editor-0.0.180}/je_editor/pyside_ui/main_ui/menu/run_menu/under_run_menu/utils.py +0 -0
  76. {je_editor-0.0.177 → je_editor-0.0.180}/je_editor/pyside_ui/main_ui/menu/set_menu_bar.py +0 -0
  77. {je_editor-0.0.177 → je_editor-0.0.180}/je_editor/pyside_ui/main_ui/menu/style_menu/__init__.py +0 -0
  78. {je_editor-0.0.177 → je_editor-0.0.180}/je_editor/pyside_ui/main_ui/menu/style_menu/build_style_menu.py +0 -0
  79. {je_editor-0.0.177 → je_editor-0.0.180}/je_editor/pyside_ui/main_ui/menu/tab_menu/__init__.py +0 -0
  80. {je_editor-0.0.177 → je_editor-0.0.180}/je_editor/pyside_ui/main_ui/menu/text_menu/__init__.py +0 -0
  81. {je_editor-0.0.177 → je_editor-0.0.180}/je_editor/pyside_ui/main_ui/menu/text_menu/build_text_menu.py +0 -0
  82. {je_editor-0.0.177 → je_editor-0.0.180}/je_editor/pyside_ui/main_ui/save_settings/__init__.py +0 -0
  83. {je_editor-0.0.177 → je_editor-0.0.180}/je_editor/pyside_ui/main_ui/save_settings/user_color_setting_file.py +0 -0
  84. {je_editor-0.0.177 → je_editor-0.0.180}/je_editor/pyside_ui/main_ui/save_settings/user_setting_file.py +0 -0
  85. {je_editor-0.0.177 → je_editor-0.0.180}/je_editor/pyside_ui/main_ui/system_tray/__init__.py +0 -0
  86. {je_editor-0.0.177 → je_editor-0.0.180}/je_editor/pyside_ui/main_ui/system_tray/extend_system_tray.py +0 -0
  87. {je_editor-0.0.177 → je_editor-0.0.180}/je_editor/utils/__init__.py +0 -0
  88. {je_editor-0.0.177 → je_editor-0.0.180}/je_editor/utils/encodings/__init__.py +0 -0
  89. {je_editor-0.0.177 → je_editor-0.0.180}/je_editor/utils/encodings/python_encodings.py +0 -0
  90. {je_editor-0.0.177 → je_editor-0.0.180}/je_editor/utils/exception/__init__.py +0 -0
  91. {je_editor-0.0.177 → je_editor-0.0.180}/je_editor/utils/exception/exception_tags.py +0 -0
  92. {je_editor-0.0.177 → je_editor-0.0.180}/je_editor/utils/exception/exceptions.py +0 -0
  93. {je_editor-0.0.177 → je_editor-0.0.180}/je_editor/utils/file/__init__.py +0 -0
  94. {je_editor-0.0.177 → je_editor-0.0.180}/je_editor/utils/file/open/__init__.py +0 -0
  95. {je_editor-0.0.177 → je_editor-0.0.180}/je_editor/utils/file/open/open_file.py +0 -0
  96. {je_editor-0.0.177 → je_editor-0.0.180}/je_editor/utils/file/save/__init__.py +0 -0
  97. {je_editor-0.0.177 → je_editor-0.0.180}/je_editor/utils/file/save/save_file.py +0 -0
  98. {je_editor-0.0.177 → je_editor-0.0.180}/je_editor/utils/json/__init__.py +0 -0
  99. {je_editor-0.0.177 → je_editor-0.0.180}/je_editor/utils/json/json_file.py +0 -0
  100. {je_editor-0.0.177 → je_editor-0.0.180}/je_editor/utils/json_format/__init__.py +0 -0
  101. {je_editor-0.0.177 → je_editor-0.0.180}/je_editor/utils/json_format/json_process.py +0 -0
  102. {je_editor-0.0.177 → je_editor-0.0.180}/je_editor/utils/multi_language/__init__.py +0 -0
  103. {je_editor-0.0.177 → je_editor-0.0.180}/je_editor/utils/multi_language/multi_language_wrapper.py +0 -0
  104. {je_editor-0.0.177 → je_editor-0.0.180}/je_editor/utils/redirect_manager/__init__.py +0 -0
  105. {je_editor-0.0.177 → je_editor-0.0.180}/je_editor/utils/redirect_manager/redirect_manager_class.py +0 -0
  106. {je_editor-0.0.177 → je_editor-0.0.180}/je_editor/utils/venv_check/__init__.py +0 -0
  107. {je_editor-0.0.177 → je_editor-0.0.180}/je_editor/utils/venv_check/check_venv.py +0 -0
  108. {je_editor-0.0.177 → je_editor-0.0.180}/je_editor.egg-info/SOURCES.txt +0 -0
  109. {je_editor-0.0.177 → je_editor-0.0.180}/je_editor.egg-info/dependency_links.txt +0 -0
  110. {je_editor-0.0.177 → je_editor-0.0.180}/je_editor.egg-info/top_level.txt +0 -0
  111. {je_editor-0.0.177 → je_editor-0.0.180}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: je_editor
3
- Version: 0.0.177
3
+ Version: 0.0.180
4
4
  Summary: JEditor is basic but powerful editor include GPT
5
5
  Author-email: JE-Chen <jechenmailman@gmail.com>
6
6
  License: MIT
@@ -24,6 +24,7 @@ Requires-Dist: frontengine
24
24
  Requires-Dist: pycodestyle
25
25
  Requires-Dist: jedi
26
26
  Requires-Dist: qtconsole
27
+ Requires-Dist: re-edge-gpt[gui]
27
28
 
28
29
  # je_editor
29
30
 
@@ -18,9 +18,9 @@ from je_editor.utils.exception.exceptions import JEditorJsonException
18
18
  from je_editor.utils.exception.exceptions import JEditorOpenFileException
19
19
  from je_editor.utils.exception.exceptions import JEditorRunOnShellException
20
20
  from je_editor.utils.exception.exceptions import JEditorSaveFileException
21
- from je_editor.utils.multi_language.traditional_chinese import traditional_chinese_word_dict
22
21
  from je_editor.utils.multi_language.english import english_word_dict
23
22
  from je_editor.utils.multi_language.multi_language_wrapper import language_wrapper
23
+ from je_editor.utils.multi_language.traditional_chinese import traditional_chinese_word_dict
24
24
 
25
25
  __all__ = [
26
26
  "start_editor", "EditorMain", "EDITOR_EXTEND_TAB",
@@ -24,9 +24,7 @@ class PEP8FormatChecker(pycodestyle.Checker):
24
24
  self.error_list: list = list()
25
25
 
26
26
  def replace_report_error(self, line_number, offset, text, check):
27
- if text.startswith("W191"):
28
- pass
29
- else:
27
+ if not text.startswith("W191"):
30
28
  self.error_list.append(f"{text} on line: {line_number}, offset: {offset}")
31
29
 
32
30
  def check_all_format(self, expected=None, line_offset=0) -> int:
@@ -130,6 +130,11 @@ class ExecManager(object):
130
130
  if self.process is not None:
131
131
  self.process.terminate()
132
132
 
133
+ def full_exit_program(self):
134
+ self.timer.stop()
135
+ self.exit_program()
136
+ self.main_window.exec_program = None
137
+
133
138
  def pull_text(self) -> None:
134
139
  # Pull text from queue and put in code result area
135
140
  try:
@@ -149,13 +154,9 @@ class ExecManager(object):
149
154
  except queue.Empty:
150
155
  pass
151
156
  if self.process.returncode == 0:
152
- self.timer.stop()
153
- self.exit_program()
154
- self.main_window.exec_program = None
157
+ self.full_exit_program()
155
158
  elif self.process.returncode is not None:
156
- self.timer.stop()
157
- self.exit_program()
158
- self.main_window.exec_program = None
159
+ self.full_exit_program()
159
160
  if self.still_run_program:
160
161
  # poll return code
161
162
  self.process.poll()
@@ -3,7 +3,6 @@ from __future__ import annotations
3
3
  from pathlib import Path
4
4
  from typing import TYPE_CHECKING
5
5
 
6
-
7
6
  if TYPE_CHECKING:
8
7
  from je_editor.pyside_ui.main_ui.editor.editor_widget import EditorWidget
9
8
  from je_editor.pyside_ui.main_ui.editor.editor_widget_dock import FullEditorWidget
@@ -78,11 +77,8 @@ class CodeEditor(QPlainTextEdit):
78
77
 
79
78
  def check_env(self):
80
79
  path = venv_check()
81
- try:
82
- if path.exists():
83
- self.env = jedi.create_environment(str(path))
84
- except Exception as error:
85
- raise error
80
+ if path.exists():
81
+ self.env = jedi.create_environment(str(path))
86
82
 
87
83
  def set_complete(self, list_to_complete: list) -> None:
88
84
  """
@@ -13,7 +13,7 @@ syntax_rule_setting_dict: dict = {
13
13
  },
14
14
  "string_rule": {
15
15
  "rules": (
16
- r"'[^'\\]*(\\.[^'\\]*)*'", # Singel
16
+ r"'[^'\\]*(\\.[^'\\]*)*'", # Single
17
17
  r'"[^"\\]*(\\.[^"\\]*)*"', # Double
18
18
  ),
19
19
  "color": QColor(0, 153, 0)
@@ -103,7 +103,7 @@ class EditorMain(QMainWindow, QtStyleTools):
103
103
  # TAB Add
104
104
  self.tab_widget.addTab(EditorWidget(self), language_wrapper.language_word_dict.get("tab_name_editor"))
105
105
  self.tab_widget.addTab(
106
- FrontEngineMainUI(show_system_tray_ray=False),
106
+ FrontEngineMainUI(show_system_tray_ray=False, redirect_output=False),
107
107
  language_wrapper.language_word_dict.get("tab_name_frontengine"))
108
108
  self.tab_widget.addTab(JEBrowser(), language_wrapper.language_word_dict.get("tab_name_web_browser"))
109
109
  self.tab_widget.addTab(
@@ -81,7 +81,7 @@ def add_dock_widget(ui_we_want_to_set: EditorMain, widget_type: str = None):
81
81
  dock_widget.setWidget(widget)
82
82
  elif widget_type == "frontengine":
83
83
  dock_widget.setWindowTitle(language_wrapper.language_word_dict.get("dock_frontengine_title"))
84
- dock_widget.setWidget(FrontEngineMainUI())
84
+ dock_widget.setWidget(FrontEngineMainUI(redirect_output=False))
85
85
  elif widget_type == "ipython":
86
86
  dock_widget.setWindowTitle(language_wrapper.language_word_dict.get("dock_ipython_title"))
87
87
  dock_widget.setWidget(IpythonWidget(ui_we_want_to_set))
@@ -7,6 +7,7 @@ from frontengine import FrontEngineMainUI
7
7
  from je_editor.pyside_ui.browser.browser_widget import JEBrowser
8
8
  from je_editor.pyside_ui.main_ui.editor.editor_widget import EditorWidget
9
9
  from je_editor.pyside_ui.main_ui.ipython_widget.rich_jupyter import IpythonWidget
10
+ from re_edge_gpt.ui.chat.main_ui import ChatMainUI
10
11
 
11
12
  if TYPE_CHECKING:
12
13
  from je_editor.pyside_ui.main_ui.main_editor import EditorMain
@@ -53,6 +54,13 @@ def set_tab_menu(ui_we_want_to_set: EditorMain) -> None:
53
54
  lambda: add_ipython(ui_we_want_to_set)
54
55
  )
55
56
  ui_we_want_to_set.tab_menu.addAction(ui_we_want_to_set.tab_menu.add_ipython_action)
57
+ # ReEdgeGPT
58
+ ui_we_want_to_set.tab_menu.add_re_edge_gpt_action = QAction(
59
+ language_wrapper.language_word_dict.get("tab_menu_re_re_edge_gpt_tab_name"))
60
+ ui_we_want_to_set.tab_menu.add_re_edge_gpt_action.triggered.connect(
61
+ lambda: add_re_edge_gpt(ui_we_want_to_set)
62
+ )
63
+ ui_we_want_to_set.tab_menu.addAction(ui_we_want_to_set.tab_menu.add_re_edge_gpt_action)
56
64
 
57
65
 
58
66
  def add_editor_tab(ui_we_want_to_set: EditorMain):
@@ -66,7 +74,7 @@ def add_editor_tab(ui_we_want_to_set: EditorMain):
66
74
 
67
75
  def add_frontengine_tab(ui_we_want_to_set: EditorMain):
68
76
  ui_we_want_to_set.tab_widget.addTab(
69
- FrontEngineMainUI(show_system_tray_ray=False),
77
+ FrontEngineMainUI(show_system_tray_ray=False, redirect_output=False),
70
78
  f"{language_wrapper.language_word_dict.get('tab_menu_frontengine_tab_name')} "
71
79
  f"{ui_we_want_to_set.tab_widget.count()}")
72
80
 
@@ -90,3 +98,10 @@ def add_ipython(ui_we_want_to_set: EditorMain):
90
98
  IpythonWidget(ui_we_want_to_set),
91
99
  f"{language_wrapper.language_word_dict.get('tab_menu_ipython_tab_name')} "
92
100
  f"{ui_we_want_to_set.tab_widget.count()}")
101
+
102
+
103
+ def add_re_edge_gpt(ui_we_want_to_set: EditorMain):
104
+ ui_we_want_to_set.tab_widget.addTab(
105
+ ChatMainUI(),
106
+ f"{language_wrapper.language_word_dict.get('tab_name_re_edge_gpt')} "
107
+ f"{ui_we_want_to_set.tab_widget.count()}")
@@ -1,12 +1,12 @@
1
- from os import getcwd
2
- from pathlib import Path
3
-
4
- from je_editor.utils.json.json_file import write_json
5
-
6
-
7
- def write_setting(save_dict: dict, file_name: str) -> None:
8
- save_dir = Path(getcwd() + "/.jeditor")
9
- save_dir.mkdir(parents=True, exist_ok=True)
10
- save_file = Path(getcwd() + f"/.jeditor/{file_name}")
11
- write_json(str(save_file), save_dict)
12
-
1
+ from os import getcwd
2
+ from pathlib import Path
3
+
4
+ from je_editor.utils.json.json_file import write_json
5
+
6
+
7
+ def write_setting(save_dict: dict, file_name: str) -> None:
8
+ save_dir = Path(getcwd() + "/.jeditor")
9
+ save_dir.mkdir(parents=True, exist_ok=True)
10
+ save_file = Path(getcwd() + f"/.jeditor/{file_name}")
11
+ write_json(str(save_file), save_dict)
12
+
@@ -7,7 +7,7 @@ from qt_material import apply_stylesheet
7
7
  from je_editor.pyside_ui.main_ui.main_editor import EditorMain
8
8
 
9
9
 
10
- def start_editor(debug_mode: bool = False, ) -> None:
10
+ def start_editor(debug_mode: bool = False) -> None:
11
11
  new_editor = QCoreApplication.instance()
12
12
  if new_editor is None:
13
13
  new_editor = QApplication(sys.argv)
@@ -5,6 +5,7 @@ english_word_dict = {
5
5
  "tab_name_editor": "Editor",
6
6
  "tab_name_web_browser": "Web Browser",
7
7
  "tab_name_frontengine": "FrontEngine",
8
+ "tab_name_re_edge_gpt": "Re-EdgeGPT",
8
9
  # Browser
9
10
  "browser_download_detail": "Download Detail",
10
11
  "browser_find_text": "Find Text",
@@ -107,6 +108,7 @@ please make sure that the current encoding is consistent with the default encodi
107
108
  "tab_menu_web_tab_name": "WEB Browser",
108
109
  "tab_menu_stackoverflow_tab_name": "Stackoverflow",
109
110
  "tab_menu_ipython_tab_name": "IPython(Jupyter)",
111
+ "tab_menu_re_re_edge_gpt_tab_name": "ReEdgeGPT",
110
112
  # Text Menu
111
113
  "text_menu_label": "Text",
112
114
  "text_menu_label_font": "Font",
@@ -5,6 +5,7 @@ traditional_chinese_word_dict = {
5
5
  "tab_name_editor": "編輯器",
6
6
  "tab_name_web_browser": "網頁瀏覽器",
7
7
  "tab_name_frontengine": "前景引擎",
8
+ "tab_name_re_edge_gpt": "Re-EdgeGPT",
8
9
  # Browser
9
10
  "browser_download_detail": "下載資訊",
10
11
  "browser_find_text": "搜尋文字",
@@ -105,6 +106,7 @@ traditional_chinese_word_dict = {
105
106
  "tab_menu_web_tab_name": "瀏覽器",
106
107
  "tab_menu_stackoverflow_tab_name": "Stackoverflow",
107
108
  "tab_menu_ipython_tab_name": "IPython(Jupyter)",
109
+ "tab_menu_re_re_edge_gpt_tab_name": "ReEdgeGPT",
108
110
  # Text Menu
109
111
  "text_menu_label": "文字",
110
112
  "text_menu_label_font": "字體",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
- Name: je-editor
3
- Version: 0.0.177
2
+ Name: je_editor
3
+ Version: 0.0.180
4
4
  Summary: JEditor is basic but powerful editor include GPT
5
5
  Author-email: JE-Chen <jechenmailman@gmail.com>
6
6
  License: MIT
@@ -24,6 +24,7 @@ Requires-Dist: frontengine
24
24
  Requires-Dist: pycodestyle
25
25
  Requires-Dist: jedi
26
26
  Requires-Dist: qtconsole
27
+ Requires-Dist: re-edge-gpt[gui]
27
28
 
28
29
  # je_editor
29
30
 
@@ -5,3 +5,4 @@ frontengine
5
5
  pycodestyle
6
6
  jedi
7
7
  qtconsole
8
+ re-edge-gpt[gui]
@@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"
6
6
 
7
7
  [project]
8
8
  name = "je_editor"
9
- version = "0.0.177"
9
+ version = "0.0.180"
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.9"
15
15
  license = { text = "MIT" }
16
16
  dependencies = [
17
- "PySide6", "qt-material", "yapf", "frontengine", "pycodestyle", "jedi", "qtconsole"
17
+ "PySide6", "qt-material", "yapf", "frontengine", "pycodestyle", "jedi", "qtconsole", "re-edge-gpt[gui]"
18
18
  ]
19
19
  classifiers = [
20
20
  "Programming Language :: Python :: 3.9",
File without changes
File without changes
File without changes