Changeset 3437 for trunk/GSASIIphsGUI.py


Ignore:
Timestamp:
Jun 18, 2018 11:25:20 AM (5 years ago)
Author:
toby
Message:

fix bugs after replacing w/space group button in xform; save scriptable work

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIphsGUI.py

    r3435 r3437  
    321321                        SGErr,SGData = G2spc.SpcGroup(self.newSpGrp)
    322322                        self.Phase['General']['SGData'] = SGData
    323                         SGTxt.SetValue(self.newSpGrp)
     323                        SGTxt.SetLabel(self.newSpGrp)
    324324            OnTest(event)
    325325       
     
    327327            event.Skip()
    328328            SpcGp = GetSpGrpfromUser(self.panel,self.newSpGrp)
    329             if SpcGp == self.newSpGrp: #didn't change it!
     329            if SpcGp == self.newSpGrp or SpcGp is None: #didn't change it!
    330330                return
    331331            # try a lookup on the user-supplied name
     
    337337            if SGErr:
    338338                text = [G2spc.SGErrors(SGErr)+'\nSpace Group set to previous']
    339                 SGTxt.SetValue(self.newSpGrp)
     339                SGTxt.SetLabel(self.newSpGrp)
    340340                msg = 'Space Group Error'
    341341                Text = '\n'.join(text)
     
    345345                self.Phase['General']['SGData'] = SGData
    346346                self.newSpGrp = SpcGp
    347                 SGTxt.SetValue(self.Phase['General']['SGData']['SpGrp'])
     347                SGTxt.SetLabel(self.Phase['General']['SGData']['SpGrp'])
    348348                msg = 'Space Group Information'
    349349                G2G.SGMessageBox(self.panel,msg,text,table).Show()
Note: See TracChangeset for help on using the changeset viewer.