je-editor 0.0.59__py3-none-any.whl → 0.0.61__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- je_editor/__init__.py +3 -2
- je_editor/pyside_ui/editor_main_ui/main_editor.py +1 -1
- je_editor/pyside_ui/ui_setting/ui_setting.py +15 -4
- je_editor/start_editor.py +1 -1
- {je_editor-0.0.59.dist-info → je_editor-0.0.61.dist-info}/METADATA +1 -1
- {je_editor-0.0.59.dist-info → je_editor-0.0.61.dist-info}/RECORD +9 -9
- {je_editor-0.0.59.dist-info → je_editor-0.0.61.dist-info}/LICENSE +0 -0
- {je_editor-0.0.59.dist-info → je_editor-0.0.61.dist-info}/WHEEL +0 -0
- {je_editor-0.0.59.dist-info → je_editor-0.0.61.dist-info}/top_level.txt +0 -0
je_editor/__init__.py
CHANGED
@@ -1,4 +1,5 @@
|
|
1
|
-
from je_editor.tkinter_ui.editor_main_ui.tkinter_editor import EditorMain
|
1
|
+
from je_editor.tkinter_ui.editor_main_ui.tkinter_editor import EditorMain as TkinterEditor
|
2
|
+
from je_editor.pyside_ui.editor_main_ui.main_editor import EditorMain as PySideEditor
|
2
3
|
# start editor
|
3
4
|
from je_editor.start_editor import start_editor
|
4
5
|
# Exceptions
|
@@ -15,7 +16,7 @@ from je_editor.utils.file.open.open_file import open_file
|
|
15
16
|
from je_editor.utils.file.save.save_file import save_file
|
16
17
|
|
17
18
|
__all__ = [
|
18
|
-
"
|
19
|
+
"TkinterEditor", "PySideEditor",
|
19
20
|
"start_editor",
|
20
21
|
"JEditorException", "JEditorExecException",
|
21
22
|
"JEditorRunOnShellException", "JEditorSaveFileException",
|
@@ -2,8 +2,8 @@ import os
|
|
2
2
|
|
3
3
|
from PySide6.QtWidgets import QMainWindow
|
4
4
|
|
5
|
-
from je_editor.pyside_ui.ui_setting.ui_setting import set_ui
|
6
5
|
from je_editor.pyside_ui.menu.set_menu import set_menu
|
6
|
+
from je_editor.pyside_ui.ui_setting.ui_setting import set_ui
|
7
7
|
|
8
8
|
|
9
9
|
class EditorMain(QMainWindow):
|
@@ -1,4 +1,7 @@
|
|
1
|
-
from PySide6.
|
1
|
+
from PySide6.QtCore import QDir
|
2
|
+
from PySide6.QtGui import QScreen
|
3
|
+
from PySide6.QtWidgets import QMainWindow, QScrollArea, QPlainTextEdit, QGridLayout, QWidget, QFileSystemModel, \
|
4
|
+
QTreeView
|
2
5
|
|
3
6
|
|
4
7
|
def set_ui(ui_we_want_to_set: QMainWindow):
|
@@ -7,7 +10,7 @@ def set_ui(ui_we_want_to_set: QMainWindow):
|
|
7
10
|
ui_we_want_to_set.grid_layout = QGridLayout(ui_we_want_to_set.q_widget)
|
8
11
|
ui_we_want_to_set.grid_layout.setContentsMargins(0, 0, 0, 0)
|
9
12
|
ui_we_want_to_set.setCentralWidget(ui_we_want_to_set.q_widget)
|
10
|
-
ui_we_want_to_set.resize(
|
13
|
+
ui_we_want_to_set.resize(600, 600)
|
11
14
|
ui_we_want_to_set.setWindowTitle("JEditor")
|
12
15
|
# code edit and code result plaintext
|
13
16
|
ui_we_want_to_set.code_edit = QPlainTextEdit()
|
@@ -23,5 +26,13 @@ def set_ui(ui_we_want_to_set: QMainWindow):
|
|
23
26
|
ui_we_want_to_set.code_result_scroll_area.setWidgetResizable(True)
|
24
27
|
ui_we_want_to_set.code_result_scroll_area.setViewportMargins(0, 0, 0, 0)
|
25
28
|
ui_we_want_to_set.code_result_scroll_area.setWidget(ui_we_want_to_set.code_result)
|
26
|
-
ui_we_want_to_set.grid_layout.
|
27
|
-
ui_we_want_to_set.grid_layout.
|
29
|
+
ui_we_want_to_set.grid_layout.setRowStretch(0, 10)
|
30
|
+
ui_we_want_to_set.grid_layout.setColumnStretch(1, 10)
|
31
|
+
ui_we_want_to_set.grid_layout.addWidget(ui_we_want_to_set.code_edit_scroll_area, 0, 1)
|
32
|
+
ui_we_want_to_set.grid_layout.addWidget(ui_we_want_to_set.code_result_scroll_area, 1, 1)
|
33
|
+
ui_we_want_to_set.grid_layout.setColumnStretch(0, 4)
|
34
|
+
ui_we_want_to_set.project_treeview_model = QFileSystemModel()
|
35
|
+
ui_we_want_to_set.project_treeview_model.setRootPath(QDir.currentPath())
|
36
|
+
ui_we_want_to_set.project_treeview = QTreeView()
|
37
|
+
ui_we_want_to_set.project_treeview.setModel(ui_we_want_to_set.project_treeview_model)
|
38
|
+
ui_we_want_to_set.grid_layout.addWidget(ui_we_want_to_set.project_treeview, 0, 0, 0, 1)
|
je_editor/start_editor.py
CHANGED
@@ -6,7 +6,7 @@ from je_editor.tkinter_ui.editor_main_ui.tkinter_editor import EditorMain as Tki
|
|
6
6
|
from je_editor.pyside_ui.editor_main_ui.main_editor import EditorMain as PysideEditor
|
7
7
|
|
8
8
|
|
9
|
-
def start_editor(editor: str = "
|
9
|
+
def start_editor(editor: str = "tkinter", use_theme=None, **kwargs):
|
10
10
|
if editor == "pyside":
|
11
11
|
new_editor = QApplication(sys.argv)
|
12
12
|
window = PysideEditor()
|
@@ -1,14 +1,14 @@
|
|
1
|
-
je_editor/__init__.py,sha256=
|
1
|
+
je_editor/__init__.py,sha256=zKHKkSwjv0UDBJJ2eiKWlb5WoJziEM6_MjLQyGz3ElQ,1329
|
2
2
|
je_editor/__main__.py,sha256=tv19PbVG_8bg4HhRWINNYL_Zu6VtkJR00U_0v56GsK8,598
|
3
|
-
je_editor/start_editor.py,sha256=
|
3
|
+
je_editor/start_editor.py,sha256=puf15623lMvMgce-4dAvuxeiU_etWi17md8crsrZZEg,616
|
4
4
|
je_editor/pyside_ui/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
5
5
|
je_editor/pyside_ui/editor_main_ui/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
6
|
-
je_editor/pyside_ui/editor_main_ui/main_editor.py,sha256=
|
6
|
+
je_editor/pyside_ui/editor_main_ui/main_editor.py,sha256=LjC5w1FGFvl9f0mkkEaxMohzO9fA5UFBWsKmyGjuZKI,530
|
7
7
|
je_editor/pyside_ui/menu/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
8
8
|
je_editor/pyside_ui/menu/set_menu.py,sha256=k-R0XjEcUIk5EHk9UL9cv1C2Dx_IcZSFPOGKsahLSgg,639
|
9
9
|
je_editor/pyside_ui/ui_event/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
10
10
|
je_editor/pyside_ui/ui_setting/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
11
|
-
je_editor/pyside_ui/ui_setting/ui_setting.py,sha256=
|
11
|
+
je_editor/pyside_ui/ui_setting/ui_setting.py,sha256=5HyNET-AvmAV1RffBnWNjeKez-NAAnywq4SlxTcYbko,2346
|
12
12
|
je_editor/tkinter_ui/__init__.py,sha256=frcCV1k9oG9oKj3dpUqdJg1PxRT2RSN_XKdLCPjaYaY,2
|
13
13
|
je_editor/tkinter_ui/editor_main_ui/__init__.py,sha256=frcCV1k9oG9oKj3dpUqdJg1PxRT2RSN_XKdLCPjaYaY,2
|
14
14
|
je_editor/tkinter_ui/editor_main_ui/tkinter_editor.py,sha256=WjlwUFoYgONbnbOk91LDQUSID3K8B14yv8hIImYm7XM,6954
|
@@ -100,8 +100,8 @@ je_editor/utils/string_translate/__init__.py,sha256=frcCV1k9oG9oKj3dpUqdJg1PxRT2
|
|
100
100
|
je_editor/utils/string_translate/used_string.py,sha256=BMHjWvMrmJKvbYKjNZy4wjIVATwdIfqAbQSInUqSxjc,79
|
101
101
|
je_editor/utils/theme/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
102
102
|
je_editor/utils/theme/theme.py,sha256=yJ9kU9MCABewkh-babP9InH1wiA4TfzQDfhoDvMconI,96
|
103
|
-
je_editor-0.0.
|
104
|
-
je_editor-0.0.
|
105
|
-
je_editor-0.0.
|
106
|
-
je_editor-0.0.
|
107
|
-
je_editor-0.0.
|
103
|
+
je_editor-0.0.61.dist-info/LICENSE,sha256=YcSMBs2sED35BtlErMkfIDye9Oo-3SYmUJiZJOpa34g,1085
|
104
|
+
je_editor-0.0.61.dist-info/METADATA,sha256=qixZ33hhcTmKiqpNNNk_hHputLVZrK4hVbeamSzLCW8,3847
|
105
|
+
je_editor-0.0.61.dist-info/WHEEL,sha256=pkctZYzUS4AYVn6dJ-7367OJZivF2e8RA9b_ZBjif18,92
|
106
|
+
je_editor-0.0.61.dist-info/top_level.txt,sha256=_9YA7BgxpkmdLs-5V_UQILxClcMRgPyG1a3qaE-Bkcs,10
|
107
|
+
je_editor-0.0.61.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|