Changeset 3459


Ignore:
Timestamp:
Jun 29, 2018 11:54:56 AM (3 years ago)
Author:
vondreele
Message:

replace tc.SetDimensions? with tc.SetSize? as suggested in G2ctrlGUI l 3882
put a try, except around Sizer.Clear(True) : fails with C++ error sometimes, ex. edit atom parm & switch phase
provide suitable return if space group not changed in G2phsGUI

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIctrlGUI.py

    r3458 r3459  
    38803880
    38813881    def SetSize(self, rect):
    3882         self._tc.SetDimensions(rect.x, rect.y, rect.width+2, rect.height+2,
     3882        self._tc.SetSize(rect.x, rect.y, rect.width+2, rect.height+2,
    38833883                               wx.SIZE_ALLOW_MINUS_ONE)
    38843884
  • trunk/GSASIIdataGUI.py

    r3451 r3459  
    46154615        Sizer = self.GetSizer()
    46164616        if Sizer:
    4617             Sizer.Clear(True)
     4617            try:
     4618                Sizer.Clear(True)
     4619            except:
     4620                pass
    46184621        else:
    46194622            print ('No sizer in dataWindow')
  • trunk/GSASIIphsGUI.py

    r3449 r3459  
    979979    if not dlg.Show():
    980980        dlg.Destroy()
    981         return
     981        return SpGrp
    982982    else:
    983983        try:
     
    13921392                # try a lookup on the user-supplied name
    13931393                SpcGp = GetSpGrpfromUser(General,SpGrp)
     1394                if SpcGp == SpGrp:
     1395                    return      #unchanged - do nothing
    13941396                SpGrpNorm = G2spc.StandardizeSpcName(SpcGp)
    13951397                if SpGrpNorm:
Note: See TracChangeset for help on using the changeset viewer.