Added capability to execute the script when the external editor saves it.
This commit is contained in:
parent
dfba0f3d5e
commit
fb240753ac
|
@ -4,6 +4,7 @@ from PySide import QtCore
|
|||
from PySide.QtCore import QSize, QRect, Qt, QRegExp
|
||||
from PySide.QtGui import QPainter, QSyntaxHighlighter, QTextCharFormat, QFont, QColor, QTextCursor, QPlainTextEdit, QTextEdit, QWidget
|
||||
from FinderOverlay import FinderOverlay
|
||||
import CQGui.Command
|
||||
|
||||
class LineNumberArea(QWidget):
|
||||
def __init__(self, parent):
|
||||
|
@ -113,6 +114,8 @@ class CodeEditor(QPlainTextEdit):
|
|||
|
||||
self.setPlainText(self.file_contents)
|
||||
|
||||
CQGui.Command.CadQueryExecuteScript().Activated()
|
||||
|
||||
# Tells whether or not the contents of the file we're working with has changed
|
||||
def changedOnDisk(self):
|
||||
with open(self.file_path) as f: file_contents = f.read()
|
||||
|
|
Loading…
Reference in New Issue
Block a user