Changeset f2e199e in sasview for src/sas/qtgui/Utilities/ModelEditor.py
- Timestamp:
- Nov 22, 2018 3:47:13 AM (5 years ago)
- Branches:
- ESS_GUI, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
- Children:
- 72651df
- Parents:
- 21e71f1
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Utilities/ModelEditor.py
r3933ee9 rf2e199e 12 12 """ 13 13 modelModified = QtCore.pyqtSignal() 14 def __init__(self, parent=None ):14 def __init__(self, parent=None, is_python=True): 15 15 super(ModelEditor, self).__init__(parent) 16 16 self.setupUi(self) 17 18 self.is_python = is_python 17 19 18 20 self.setupWidgets() … … 29 31 # DO NOT MOVE TO TOP 30 32 from sas.qtgui.Utilities.PythonSyntax import PythonHighlighter 31 self.highlight = PythonHighlighter(self.txtEditor.document() )33 self.highlight = PythonHighlighter(self.txtEditor.document(), is_python=self.is_python) 32 34 33 35 self.txtEditor.setFont(GuiUtils.getMonospaceFont())
Note: See TracChangeset
for help on using the changeset viewer.