Move around the class methods a bit

This commit is contained in:
Veronica K. B. Olsen
2019-05-18 13:43:49 +02:00
parent 83a9c6660f
commit cb71da5200
+16 -8
View File
@@ -100,7 +100,7 @@ class GuiDocEditor(QTextEdit):
return
##
# Class Methods
# Setters and Getters
##
def setDocumentChanged(self, bValue):
@@ -116,6 +116,14 @@ class GuiDocEditor(QTextEdit):
self.setDocumentChanged(False)
return True
def getText(self):
theText = self.toPlainText()
return theText
##
# Spell Checking
##
def setPwl(self, pwlFile):
if pwlFile is not None:
self.pwlFile = pwlFile
@@ -134,9 +142,13 @@ class GuiDocEditor(QTextEdit):
self.rehighlightDocument()
return True
def getText(self):
theText = self.toPlainText()
return theText
def rehighlightDocument(self):
self.hLight.rehighlight()
return
##
# General Class Methods
##
def changeWidth(self):
"""Automatically adjust the margins so the text is centred, but only if Config.textFixedW is
@@ -169,10 +181,6 @@ class GuiDocEditor(QTextEdit):
return False
return True
def rehighlightDocument(self):
self.hLight.rehighlight()
return
##
# Document Events and Maintenance
##