Ignore:
Timestamp:
Nov 22, 2018 3:47:13 AM (5 years ago)
Author:
Piotr Rozyczko <piotr.rozyczko@…>
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
Message:

Allow editing models with corresponding C-files. SASVIEW-1208

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/Utilities/ModelEditor.py

    r3933ee9 rf2e199e  
    1212    """ 
    1313    modelModified = QtCore.pyqtSignal() 
    14     def __init__(self, parent=None): 
     14    def __init__(self, parent=None, is_python=True): 
    1515        super(ModelEditor, self).__init__(parent) 
    1616        self.setupUi(self) 
     17 
     18        self.is_python = is_python 
    1719 
    1820        self.setupWidgets() 
     
    2931        # DO NOT MOVE TO TOP 
    3032        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) 
    3234 
    3335        self.txtEditor.setFont(GuiUtils.getMonospaceFont()) 
Note: See TracChangeset for help on using the changeset viewer.