Skip to content

Commit 3fd5fd4

Browse files
committed
fix tab
1 parent 062e40a commit 3fd5fd4

File tree

2 files changed

+59267
-59267
lines changed

2 files changed

+59267
-59267
lines changed

src/forms/mainwindow.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -817,15 +817,15 @@ def handler_Run(flag=False):
817817

818818
def handler_ConvertToPython():
819819
py_code = "\n".join(AppState.algo.python())
820-
GuiState.code_editor.setPlainText(py_code, "", "")
820+
GuiState.code_editor.setPlainText(py_code.replace("\t", " "), "", "")
821821
AppState.mode_python = True
822822
AppState.current_file = None
823823
refresh()
824824

825825

826826
def algo_run_python():
827827
py_code = "\n".join(AppState.algo.python())
828-
GuiState.code_editor.setPlainText(py_code, "", "")
828+
GuiState.code_editor.setPlainText(py_code.replace("\t", " "), "", "")
829829
AppState.mode_python = True
830830
handler_Run()
831831
AppState.mode_python = False

0 commit comments

Comments
 (0)