Skip to content

Commit 674ddb6

Browse files
authored
Merge pull request #148 from Integration-Automation/dev
Dev
2 parents c9e4a62 + dbb9107 commit 674ddb6

File tree

26 files changed

+51
-51
lines changed

26 files changed

+51
-51
lines changed

dev.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"
66

77
[project]
88
name = "je_editor_dev"
9-
version = "0.0.200"
9+
version = "0.0.201"
1010
authors = [
1111
{ name = "JE-Chen", email = "[email protected]" },
1212
]

je_editor/pyside_ui/browser/browser_download_window.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class BrowserDownloadWindow(QWidget):
1010

1111
def __init__(self, download_instance: QWebEngineDownloadRequest):
1212
super().__init__()
13-
jeditor_logger.info(f"Init BrowserDownloadWindow "
13+
jeditor_logger.info("Init BrowserDownloadWindow "
1414
f"download_instance: {download_instance}")
1515
self.setAttribute(Qt.WidgetAttribute.WA_DeleteOnClose)
1616
self.box_layout = QBoxLayout(QBoxLayout.Direction.TopToBottom)

je_editor/pyside_ui/browser/browser_serach_lineedit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class BrowserLineSearch(QLineEdit):
1515

1616
def __init__(self, browser_widget: BrowserWidget):
1717
super().__init__()
18-
jeditor_logger.info(f"Init BrowserLineSearch "
18+
jeditor_logger.info("Init BrowserLineSearch "
1919
f"browser_widget: {browser_widget}")
2020
self.setAttribute(Qt.WidgetAttribute.WA_DeleteOnClose)
2121
self.browser = browser_widget

je_editor/pyside_ui/browser/browser_view.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class BrowserView(QWebEngineView):
1212

1313
def __init__(self, start_url: str = "https://www.google.com/"):
1414
super().__init__()
15-
jeditor_logger.info(f"Init BrowserView "
15+
jeditor_logger.info("Init BrowserView "
1616
f"start_url: {start_url}")
1717
self.setUrl(start_url)
1818
self.download_list: List[QWebEngineDownloadRequest] = list()
@@ -21,7 +21,7 @@ def __init__(self, start_url: str = "https://www.google.com/"):
2121
self.setAttribute(Qt.WidgetAttribute.WA_DeleteOnClose)
2222

2323
def download_file(self, download_instance: QWebEngineDownloadRequest):
24-
jeditor_logger.info(f"Download File "
24+
jeditor_logger.info("Download File "
2525
f"download_instance: {download_instance}")
2626
self.download_list.append(download_instance)
2727
download_detail_window = BrowserDownloadWindow(download_instance)

je_editor/pyside_ui/browser/browser_widget.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class BrowserWidget(QWidget):
1212
def __init__(self, start_url: str = "https://www.google.com/",
1313
search_prefix: str = "https://www.google.com.tw/search?q="):
1414
super().__init__()
15-
jeditor_logger.info(f"Init BrowserWidget "
15+
jeditor_logger.info("Init BrowserWidget "
1616
f"start_url: {start_url} "
1717
f"search_prefix: {search_prefix}")
1818
# Browser setting

je_editor/pyside_ui/code/plaintext_code_edit/code_edit_plaintext.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def insert_completion(self, completion) -> None:
106106
:param completion: completion text
107107
:return: None
108108
"""
109-
jeditor_logger.info(f"CodeEditor insert_completion completion:{completion}")
109+
jeditor_logger.info(f"CodeEditor insert_completion completion: {completion}")
110110
if self.completer.widget() != self:
111111
return
112112
text_cursor = self.textCursor()

je_editor/pyside_ui/dialog/file_dialog/open_file_dialog.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def choose_file_get_open_file_path(parent_qt_instance: EditorMain) -> None:
2626
:param parent_qt_instance: Pyside parent
2727
:return: None
2828
"""
29-
jeditor_logger.info(f"open_file_dialog.py choose_file_get_open_file_path"
29+
jeditor_logger.info("open_file_dialog.py choose_file_get_open_file_path"
3030
f" parent_qt_instance: {parent_qt_instance}")
3131
widget = parent_qt_instance.tab_widget.currentWidget()
3232
if isinstance(widget, EditorWidget):
@@ -58,7 +58,7 @@ def choose_file_get_open_file_path(parent_qt_instance: EditorMain) -> None:
5858

5959

6060
def choose_dir_get_dir_path(parent_qt_instance: EditorMain) -> None:
61-
jeditor_logger.info(f"open_file_dialog.py choose_dir_get_dir_path"
61+
jeditor_logger.info("open_file_dialog.py choose_dir_get_dir_path"
6262
f" parent_qt_instance: {parent_qt_instance}")
6363
dir_path = QFileDialog().getExistingDirectory(parent=parent_qt_instance, )
6464
if dir_path != "":

je_editor/pyside_ui/dialog/file_dialog/save_file_dialog.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def choose_file_get_save_file_path(parent_qt_instance: EditorMain) -> bool:
2020
:param parent_qt_instance: Pyside parent
2121
:return: save code edit content to file
2222
"""
23-
jeditor_logger.info(f"save_file_dialog.py choose_file_get_save_file_path"
23+
jeditor_logger.info("save_file_dialog.py choose_file_get_save_file_path"
2424
f" parent_qt_instance: {parent_qt_instance}")
2525
widget = parent_qt_instance.tab_widget.currentWidget()
2626
if isinstance(widget, EditorWidget):

je_editor/pyside_ui/main_ui/editor/editor_widget.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def __init__(self, main_window: EditorMain):
113113
self.check_format_timer.start()
114114

115115
def set_project_treeview(self) -> None:
116-
jeditor_logger.info(f"EditorWidget set_project_treeview")
116+
jeditor_logger.info("EditorWidget set_project_treeview")
117117
self.project_treeview_model = QFileSystemModel()
118118
self.project_treeview_model.setRootPath(QDir.currentPath())
119119
self.project_treeview = QTreeView()
@@ -168,22 +168,22 @@ def open_an_file(self, path: Path) -> bool:
168168
return True
169169

170170
def treeview_click(self) -> None:
171-
jeditor_logger.info(f"EditorWidget treeview_click")
171+
jeditor_logger.info("EditorWidget treeview_click")
172172
clicked_item: QFileSystemModel = self.project_treeview.selectedIndexes()[0]
173173
file_info: QFileInfo = self.project_treeview.model().fileInfo(clicked_item)
174174
path = pathlib.Path(file_info.absoluteFilePath())
175175
if path.is_file():
176176
self.open_an_file(path)
177177

178178
def rename_self_tab(self):
179-
jeditor_logger.info(f"EditorWidget rename_self_tab")
179+
jeditor_logger.info("EditorWidget rename_self_tab")
180180
if self.tab_manager.currentWidget() is self:
181181
self.tab_manager.setTabText(
182182
self.tab_manager.currentIndex(), str(Path(self.current_file)))
183183
self.setObjectName(str(Path(self.current_file)))
184184

185185
def check_file_format(self):
186-
jeditor_logger.info(f"EditorWidget check_file_format")
186+
jeditor_logger.info("EditorWidget check_file_format")
187187
if self.current_file:
188188
if self.checker is None:
189189
self.checker = PEP8FormatChecker(self.current_file)
@@ -196,7 +196,7 @@ def check_file_format(self):
196196
self.format_check_result.append(error)
197197

198198
def close(self) -> bool:
199-
jeditor_logger.info(f"EditorWidget close")
199+
jeditor_logger.info("EditorWidget close")
200200
self.check_format_timer.stop()
201201
if self.code_save_thread is not None:
202202
self.code_save_thread.still_run = False

je_editor/pyside_ui/main_ui/editor/process_input.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
class ProcessInput(QWidget):
1717

1818
def __init__(self, main_window: EditorWidget, process_type: str = "debugger"):
19-
jeditor_logger.info(f"Init ProcessInput "
19+
jeditor_logger.info("Init ProcessInput "
2020
f"main_window: {main_window} "
2121
f"process_type: {process_type}")
2222
super().__init__()
@@ -45,23 +45,23 @@ def __init__(self, main_window: EditorWidget, process_type: str = "debugger"):
4545
self.setLayout(self.box_layout)
4646

4747
def debugger_send_command(self):
48-
jeditor_logger.info(f"EditorWidget debugger_send_command")
48+
jeditor_logger.info("EditorWidget debugger_send_command")
4949
if self.main_window.exec_python_debugger is not None:
5050
process_stdin = self.main_window.exec_python_debugger.process.stdin
5151
if process_stdin is not None:
5252
process_stdin.write(self.command_input.text().encode() + b"\n")
5353
process_stdin.flush()
5454

5555
def shell_send_command(self):
56-
jeditor_logger.info(f"EditorWidget shell_send_command")
56+
jeditor_logger.info("EditorWidget shell_send_command")
5757
if self.main_window.exec_shell is not None:
5858
process_stdin = self.main_window.exec_shell.process.stdin
5959
if process_stdin is not None:
6060
process_stdin.write(self.command_input.text().encode() + b"\n")
6161
process_stdin.flush()
6262

6363
def program_send_command(self):
64-
jeditor_logger.info(f"EditorWidget program_send_command")
64+
jeditor_logger.info("EditorWidget program_send_command")
6565
if self.main_window.exec_program is not None:
6666
process_stdin = self.main_window.exec_program.process.stdin
6767
if process_stdin is not None:

0 commit comments

Comments
 (0)