From 76d939c21f9e4547853f55c9e3ed8c2231e07cd1 Mon Sep 17 00:00:00 2001 From: tarman3 Date: Sun, 7 Dec 2025 20:23:14 +0200 Subject: [PATCH] CAM: CodeEditor - stub for setText() --- src/Mod/CAM/Path/Main/Gui/Editor.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Mod/CAM/Path/Main/Gui/Editor.py b/src/Mod/CAM/Path/Main/Gui/Editor.py index 1565a93080..a8055c317c 100644 --- a/src/Mod/CAM/Path/Main/Gui/Editor.py +++ b/src/Mod/CAM/Path/Main/Gui/Editor.py @@ -81,3 +81,7 @@ class CodeEditor(QPlainTextEdit): self.lineNumberArea.setGeometry( QRect(cr.left(), cr.top(), self.lineNumberAreaWidth(), cr.height()) ) + + def setText(self, text): + """Backward compatibility method for setText() calls.""" + self.setPlainText(text)