je-editor 0.0.194__py3-none-any.whl → 0.0.196__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- je_editor/pyside_ui/browser/browser_view.py +2 -1
- je_editor/pyside_ui/code/syntax/python_syntax.py +10 -8
- {je_editor-0.0.194.dist-info → je_editor-0.0.196.dist-info}/METADATA +2 -2
- {je_editor-0.0.194.dist-info → je_editor-0.0.196.dist-info}/RECORD +7 -7
- {je_editor-0.0.194.dist-info → je_editor-0.0.196.dist-info}/LICENSE +0 -0
- {je_editor-0.0.194.dist-info → je_editor-0.0.196.dist-info}/WHEEL +0 -0
- {je_editor-0.0.194.dist-info → je_editor-0.0.196.dist-info}/top_level.txt +0 -0
@@ -1,6 +1,8 @@
|
|
1
|
+
import pathlib
|
1
2
|
from typing import List
|
2
3
|
|
3
4
|
from PySide6.QtCore import Qt
|
5
|
+
from PySide6.QtNetwork import QNetworkCookie
|
4
6
|
from PySide6.QtWebEngineCore import QWebEngineDownloadRequest
|
5
7
|
from PySide6.QtWebEngineWidgets import QWebEngineView
|
6
8
|
|
@@ -18,7 +20,6 @@ class BrowserView(QWebEngineView):
|
|
18
20
|
self.download_list: List[QWebEngineDownloadRequest] = list()
|
19
21
|
self.download_window_list: List[BrowserDownloadWindow] = list()
|
20
22
|
self.page().profile().downloadRequested.connect(self.download_file)
|
21
|
-
self.setAttribute(Qt.WidgetAttribute.WA_DeleteOnClose)
|
22
23
|
|
23
24
|
def download_file(self, download_instance: QWebEngineDownloadRequest):
|
24
25
|
jeditor_logger.info("Download File "
|
@@ -25,8 +25,16 @@ class PythonHighlighter(QSyntaxHighlighter):
|
|
25
25
|
current_file_suffix = Path(main_window.current_file).suffix
|
26
26
|
else:
|
27
27
|
current_file_suffix = ".py"
|
28
|
+
# Basic Highlight
|
29
|
+
for rule_variable_dict in syntax_rule_setting_dict.values():
|
30
|
+
color = rule_variable_dict.get("color")
|
31
|
+
text_char_format = QTextCharFormat()
|
32
|
+
text_char_format.setForeground(color)
|
33
|
+
for rule in rule_variable_dict.get("rules"):
|
34
|
+
pattern = QRegularExpression(rule)
|
35
|
+
self.highlight_rules.append((pattern, text_char_format))
|
28
36
|
if current_file_suffix == ".py":
|
29
|
-
# Highlight
|
37
|
+
# Python Highlight
|
30
38
|
for rule_variable_dict in syntax_word_setting_dict.values():
|
31
39
|
color = rule_variable_dict.get("color")
|
32
40
|
text_char_format = QTextCharFormat()
|
@@ -34,14 +42,8 @@ class PythonHighlighter(QSyntaxHighlighter):
|
|
34
42
|
for word in rule_variable_dict.get("words"):
|
35
43
|
pattern = QRegularExpression(rf"\b{word}\b")
|
36
44
|
self.highlight_rules.append((pattern, text_char_format))
|
37
|
-
for rule_variable_dict in syntax_rule_setting_dict.values():
|
38
|
-
color = rule_variable_dict.get("color")
|
39
|
-
text_char_format = QTextCharFormat()
|
40
|
-
text_char_format.setForeground(color)
|
41
|
-
for rule in rule_variable_dict.get("rules"):
|
42
|
-
pattern = QRegularExpression(rule)
|
43
|
-
self.highlight_rules.append((pattern, text_char_format))
|
44
45
|
else:
|
46
|
+
# Another Highlight
|
45
47
|
if syntax_extend_setting_dict.get(current_file_suffix):
|
46
48
|
for rule_variable_dict in syntax_extend_setting_dict.get(current_file_suffix).values():
|
47
49
|
color = rule_variable_dict.get("color")
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.2
|
2
2
|
Name: je_editor
|
3
|
-
Version: 0.0.
|
3
|
+
Version: 0.0.196
|
4
4
|
Summary: JEditor is basic but powerful editor include GPT
|
5
5
|
Author-email: JE-Chen <jechenmailman@gmail.com>
|
6
6
|
License: MIT
|
@@ -17,7 +17,7 @@ Classifier: Operating System :: OS Independent
|
|
17
17
|
Requires-Python: >=3.9
|
18
18
|
Description-Content-Type: text/markdown
|
19
19
|
License-File: LICENSE
|
20
|
-
Requires-Dist: PySide6==6.
|
20
|
+
Requires-Dist: PySide6==6.8.2.1
|
21
21
|
Requires-Dist: qt-material
|
22
22
|
Requires-Dist: yapf
|
23
23
|
Requires-Dist: frontengine
|
@@ -5,7 +5,7 @@ je_editor/pyside_ui/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSu
|
|
5
5
|
je_editor/pyside_ui/browser/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
6
6
|
je_editor/pyside_ui/browser/browser_download_window.py,sha256=KEO8AoZYSDuES0z5os9ziD44lS47kIo3kbd5iOUM2Go,2018
|
7
7
|
je_editor/pyside_ui/browser/browser_serach_lineedit.py,sha256=GYX6faCIxl-HtRXHZoc3EAuK6Ll41jgUV3ksawY5rsc,899
|
8
|
-
je_editor/pyside_ui/browser/browser_view.py,sha256=
|
8
|
+
je_editor/pyside_ui/browser/browser_view.py,sha256=vH_-Xw1DE5RqTz-wYxkKl0X6tzpcFVKXQqMqay7tJiw,1661
|
9
9
|
je_editor/pyside_ui/browser/browser_widget.py,sha256=0fVnl6ye4FBz3bnxm-0SSEWW8bGlHS5DqQmMew5CKDk,3031
|
10
10
|
je_editor/pyside_ui/code/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
11
11
|
je_editor/pyside_ui/code/running_process_manager.py,sha256=VdfdprPNlPmMySOKDOjEEl5X9IsJVPSDb0a2KDKgiQg,1008
|
@@ -21,7 +21,7 @@ je_editor/pyside_ui/code/plaintext_code_edit/code_edit_plaintext.py,sha256=lcwmB
|
|
21
21
|
je_editor/pyside_ui/code/shell_process/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
22
22
|
je_editor/pyside_ui/code/shell_process/shell_exec.py,sha256=WpWORZ-1T4G_SdnJ4K_6THycNOpQbsIFgjSQFQOJ_1M,8730
|
23
23
|
je_editor/pyside_ui/code/syntax/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
24
|
-
je_editor/pyside_ui/code/syntax/python_syntax.py,sha256=
|
24
|
+
je_editor/pyside_ui/code/syntax/python_syntax.py,sha256=9rK7_DYAANgf28PUdVl9xs42b76Re_SWwIpijEGBuzQ,3054
|
25
25
|
je_editor/pyside_ui/code/syntax/syntax_setting.py,sha256=oaLRF_83Oa6bcAorf7AlZG0Mrt4FmsK7b4aA-LS_bRo,2284
|
26
26
|
je_editor/pyside_ui/code/textedit_code_result/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
27
27
|
je_editor/pyside_ui/code/textedit_code_result/code_record.py,sha256=pT-CmcADEaXLZ0ih6D6rpe1XywgszrEpcJxtJYgopJE,2162
|
@@ -101,8 +101,8 @@ je_editor/utils/redirect_manager/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRk
|
|
101
101
|
je_editor/utils/redirect_manager/redirect_manager_class.py,sha256=RsLRbhBy_YyiwTN5g0YkoobI-BvSdZgX0Ot53nrHm7g,2174
|
102
102
|
je_editor/utils/venv_check/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
103
103
|
je_editor/utils/venv_check/check_venv.py,sha256=oCrMdue4NYUUGrVifh_iHFwIgxVx9azYN4jz3Xiulgg,999
|
104
|
-
je_editor-0.0.
|
105
|
-
je_editor-0.0.
|
106
|
-
je_editor-0.0.
|
107
|
-
je_editor-0.0.
|
108
|
-
je_editor-0.0.
|
104
|
+
je_editor-0.0.196.dist-info/LICENSE,sha256=KMhUHh6pnIUvmXDW-49L_Sz63bqkOlPDqsecaqKiitU,1091
|
105
|
+
je_editor-0.0.196.dist-info/METADATA,sha256=YhBM3FsUyHkQBo3V1RdfMefTQgHxtB0LQ0sq0XZ-PFE,3340
|
106
|
+
je_editor-0.0.196.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
107
|
+
je_editor-0.0.196.dist-info/top_level.txt,sha256=_9YA7BgxpkmdLs-5V_UQILxClcMRgPyG1a3qaE-Bkcs,10
|
108
|
+
je_editor-0.0.196.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|