Skip to content

Commit

Permalink
DOCS: add info to docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
jethornton authored and KurtJacobson committed Jul 11, 2020
1 parent 3ad0994 commit 16cf0f7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions qtpyvcp/widgets/input_widgets/gcedit.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,9 @@ def highlightBlock(self, text): # Using QRegularExpression
index = result.capturedStart()

class gCodeEdit(QPlainTextEdit):
"""
g Code Editor using QPlainTextEdit for speed in loading
"""
focusLine = Signal(int)

def __init__(self, parent=None):
Expand Down Expand Up @@ -228,6 +231,9 @@ def __init__(self, parent=None):

@Slot(bool)
def EditorReadOnly(self, state):
"""
Set to Read Only to disable editing
"""
if state:
self.setReadOnly(True)
else:
Expand Down

0 comments on commit 16cf0f7

Please sign in to comment.