Changeset 4219


Ignore:
Timestamp:
Dec 20, 2019 9:51:50 PM (4 years ago)
Author:
toby
Message:

add kludge for sphinx 1.8.5 build

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIimgGUI.py

    r4180 r4219  
    4242import GSASIIpy3 as G2py3
    4343import ImageCalibrants as calFile
     44
     45# documentation build kludge. This prevents an error with sphinx 1.8.5 (fixed by 2.3) where all mock objects are of type _MockObject
     46if (type(wx.ListCtrl).__name__ ==
     47        type(listmix.ListCtrlAutoWidthMixin).__name__ ==
     48        type(listmix.TextEditMixin).__name__):
     49    print('Using Sphinx 1.8.5 _MockObject kludge fix in GSASIIimgGUI')
     50    class Junk1(object): pass
     51    listmix.ListCtrlAutoWidthMixin = Junk1
     52    class Junk2(object): pass
     53    listmix.TextEditMixin = Junk2
    4454
    4555VERY_LIGHT_GREY = wx.Colour(235,235,235)
     
    36493659        fp.write(lbl+': '+str(self.IMfileList)+'\n')
    36503660        fp.close()
    3651    
     3661
    36523662class ImgIntLstCtrl(wx.ListCtrl, listmix.ListCtrlAutoWidthMixin,listmix.TextEditMixin):
    36533663    '''Creates a custom ListCtrl for editing Image Integration parameters
Note: See TracChangeset for help on using the changeset viewer.