Changeset 3729
- Timestamp:
- Nov 13, 2018 9:52:00 AM (4 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIphsGUI.py
r3728 r3729 1993 1993 1994 1994 def ModulatedSizer(name): 1995 1995 1996 def showSSG(General,msg,text,table,refresh): 1996 1997 'Show the symmetry information, redraw window if needed' … … 1999 2000 dlg.Destroy() 2000 2001 if refresh: UpdateGeneral() 2002 2001 2003 def OnSuperGp(event): #for HKLF needs to reject SSgps not agreeing with modVec! 2002 2004 'Respond to selection of a modulation group' 2003 2005 event.Skip() 2006 refresh = True 2004 2007 try: 2005 2008 SSymbol = superGp.GetValue() 2006 refresh = True2007 2009 except AttributeError: 2008 2010 SSymbol = superGp.GetLabel() … … 2021 2023 wx.CallLater(100,showSSG,General,msg,text,table,refresh) 2022 2024 else: 2023 # needed in case someone manually enters an invalid S G?2025 # needed in case someone manually enters an invalid SSG? 2024 2026 text = [E+'\nSuperspace Group set to previous'] 2025 2027 superGp.SetValue(generalData['SuperSg']) … … 2051 2053 Choice = [G2spc.fixGray(SGData,item) for item in Choice] 2052 2054 if len(Choice): 2053 # removed code that allows entries to be typed in 2054 # because Bind to EVT_TEXT_ENTER caused two calls to OnSuperGp 2055 # superGp = wx.ComboBox(General,value=generalData['SuperSg'],choices=Choice,style=wx.CB_DROPDOWN|wx.TE_PROCESS_ENTER) 2056 # superGp.Bind(wx.EVT_TEXT_ENTER,OnSuperGp) 2057 superGp = wx.ComboBox(General,value=generalData['SuperSg'],choices=Choice,style=wx.CB_DROPDOWN|wx.CB_READONLY) 2058 superGp.Bind(wx.EVT_COMBOBOX,OnSuperGp) 2055 i,j= wx.__version__.split('.')[0:2] 2056 if int(i)+int(j)/10. > 2.8 and 'wxOSX' in wx.PlatformInfo: #since this seems to fail on a Mac! 2057 superGp = wx.ComboBox(General,value=generalData['SuperSg'],choices=Choice,style=wx.CB_DROPDOWN|wx.CB_READONLY) 2058 superGp.Bind(wx.EVT_COMBOBOX,OnSuperGp) 2059 else: 2060 superGp = wx.ComboBox(General,value=generalData['SuperSg'],choices=Choice,style=wx.CB_DROPDOWN|wx.TE_PROCESS_ENTER) 2061 superGp.Bind(wx.EVT_COMBOBOX,OnSuperGp) 2062 superGp.Bind(wx.EVT_TEXT_ENTER,OnSuperGp) 2059 2063 else: 2060 2064 superGp = wx.StaticText(General,label=generalData['SuperSg']) -
trunk/GSASIIspc.py
r3716 r3729 534 534 return OpText 535 535 536 def TextGen(SGData,reverse=False): 536 def TextGen(SGData,reverse=False): #does not always work correctly - not used anyway 537 537 GenSym,GenFlg,BNSsym = GetGenSym(SGData) 538 538 SGData['GenSym'] = GenSym -
trunk/SUBGROUPS.py
r3716 r3729 195 195 text,table = G2spc.SGPrint(SGData) 196 196 OpList = G2spc.TextOps(text,table,reverse=True) 197 # GenList = G2spc.TextGen(SGData,reverse=True)197 # OpList = G2spc.TextGen(SGData,reverse=True) 198 198 for item in OpList: 199 199 item += '\n'
Note: See TracChangeset
for help on using the changeset viewer.