- modified the way the status bar icon is set

- Drilling Tool - fixed missing feedrate code when the toolchange is Off
- AppTextEditor - working on syntax highlighting
- App - trying to speed up the new project creation
- Tcl Shell - Browser Edit - added Undo/Redo, Cut and Delete selection
- replace all the exec_() calls with exec() (except one situation in Tcl where I'm not sure of the effect)
This commit is contained in:
Marius Stanciu
2020-12-20 16:56:14 +02:00
committed by Marius
parent 88b4a4dbba
commit 3a97cd3880
13 changed files with 467 additions and 140 deletions

View File

@@ -25,9 +25,11 @@ if '_' not in builtins.__dict__:
class AppTextEditor(QtWidgets.QWidget):
def __init__(self, app, text=None, plain_text=None, parent=None):
def __init__(self, app, text=None, plain_text=None, color_dict=None, parent=None):
super().__init__(parent=parent)
if color_dict is None:
color_dict = {}
self.app = app
self.plain_text = plain_text
self.callback = lambda x: None
@@ -51,7 +53,7 @@ class AppTextEditor(QtWidgets.QWidget):
# CODE Editor
if self.plain_text:
self.editor_class = FCTextAreaLineNumber()
self.editor_class = FCTextAreaLineNumber(color_dict=color_dict)
self.code_editor = self.editor_class.edit
stylesheet = """