Changeset 4794 for trunk/GSASIIctrlGUI.py
- Timestamp:
- Feb 3, 2021 10:45:21 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIctrlGUI.py
r4785 r4794 135 135 import wx.lib.scrolledpanel as wxscroll 136 136 import wx.html # could postpone this for quicker startup 137 import wx.lib.mixins.listctrl as listmix 137 138 import matplotlib as mpl 138 139 except ImportError: 139 raise140 # Dumm'wx' so this file can be imported140 pass 141 # Emulate 'wx' so this file can be imported 141 142 vals = ('TreeCtrl TextCtrl PyValidator Button ComboBox Choice CheckBox'.split() + 142 143 'Dialog ID_ANY OPEN'.split()) … … 149 150 return object 150 151 return Placeholder([]) 151 wx = Placeholder(vals) 152 wxscroll = Placeholder(['ScrolledPanel']) 153 if 'phoenix' in wx.version(): 154 wg = Placeholder('Grid GridTableBase GridCellEditor'.split()) 155 else: 156 wg = Placeholder('Grid PyGridTableBase PyGridCellEditor'.split()) 152 # wx = Placeholder(vals) 153 # wxscroll = Placeholder(['ScrolledPanel']) 154 # if 'phoenix' in wx.version(): 155 # wg = Placeholder('Grid GridTableBase GridCellEditor'.split()) 156 # else: 157 # wg = Placeholder('Grid PyGridTableBase PyGridCellEditor'.split()) 158 # # avoid "duplicate base class _MockObject" error in class G2LstCtrl(): 159 # # where listmix.ListCtrlAutoWidthMixin, listmix.ColumnSorterMixin are same 160 # # in docs build 161 listmix = Placeholder() 162 listmix.ListCtrlAutoWidthMixin = Placeholder() 163 listmix.ColumnSorterMixin = Placeholder() 164 165 157 166 import time 158 167 import glob … … 5998 6007 ################################################################################ 5999 6008 ################################################################################ 6000 import wx.lib.mixins.listctrl as listmix6001 6009 class SortableLstCtrl(wx.Panel): 6002 6010 '''Creates a read-only table with sortable columns. Sorting is done by
Note: See TracChangeset
for help on using the changeset viewer.