Ignore:
Timestamp:
May 31, 2018 3:27:34 AM (6 years ago)
Author:
Piotr Rozyczko <rozyczko@…>
Branches:
ESS_GUI, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
Children:
caefb8a
Parents:
eca7c6f
Message:

Fix for Sphinx crashing on importing QSyntaxHighlighter

File:
1 edited

Legend:

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

    r8b480d27 r26970b3  
    11from PyQt5 import QtCore 
    22from PyQt5 import QtWidgets 
    3  
    4 from sas.qtgui.Utilities.PythonSyntax import PythonHighlighter 
    53 
    64from sas.qtgui.Utilities.UI.ModelEditor import Ui_ModelEditor 
     
    2624        Here - just the highlighter connected to the text edit. 
    2725        """ 
     26        # Weird import location - workaround for a bug in Sphinx choking on 
     27        # importing QSyntaxHighlighter 
     28        # DO NOT MOVE TO TOP 
     29        from sas.qtgui.Utilities.PythonSyntax import PythonHighlighter 
    2830        self.highlight = PythonHighlighter(self.txtEditor.document()) 
    2931 
Note: See TracChangeset for help on using the changeset viewer.