Changeset 2632 for trunk/GSASIIElemGUI.py
- Timestamp:
- Jan 15, 2017 1:57:08 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIElemGUI.py
r2611 r2632 22 22 import wx 23 23 import os 24 import sys 24 25 import wx.lib.colourselect as wscs 25 26 class PickElement(wx.Dialog): … … 81 82 if name[0] == 'None': 82 83 butWid *= 2 83 # patch for wx 2.9+ on Mac where EVT_COMBOBOX happens only on84 # patch for wx 2.9+ on Mac/Linux where EVT_COMBOBOX happens only on a 84 85 # value change. Not ideal because wx.CB_READONLY is better. 85 86 i,j= wx.__version__.split('.')[0:2] 86 if int(i)+int(j)/10. > 2.8 and 'wxOSX' in wx.PlatformInfo: 87 87 if int(i)+int(j)/10. > 2.8 and 'win' not in sys.platform: 88 88 El = wx.ComboBox(choices=name, parent=self, pos=pos, size=wx.Size(butWid,23), 89 89 style=wx.CB_DROPDOWN, value=name[0]+' ') # add an invisible space 90 90 else: 91 91 El = wx.ComboBox(choices=name, parent=self, pos=pos, size=wx.Size(butWid,23), 92 style=wx.CB_READONLY, value=name[0]) 92 style=wx.CB_READONLY, value=name[0]) 93 93 El.Bind(wx.EVT_COMBOBOX,self.OnElButton) 94 94
Note: See TracChangeset
for help on using the changeset viewer.