Changeset 3601


Ignore:
Timestamp:
Sep 14, 2018 3:38:19 PM (3 years ago)
Author:
vondreele
Message:

fix a weird wx4.0 C++ error in G2constrGUI (line 2212)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIconstrGUI.py

    r3599 r3601  
    22102210            wx.CallLater(100,UpdateResidueRB,rbId)
    22112211           
    2212         if ResidueRBDisplay.GetSizer(): ResidueRBDisplay.GetSizer().Clear(True)
     2212        GS = ResidueRBDisplay.GetSizer()
     2213        if GS:
     2214            try:        #get around a c++ error in wx 4.0; doing is again seems to be OK
     2215                GS.Clear(True)
     2216            except:
     2217                GS.Clear(True)
     2218       
    22132219        RBnames = {}
    22142220        for rbid in data['RBIds']['Residue']:
     
    22162222        if not RBnames:
    22172223            return
    2218         rbchoice = RBnames.keys()
     2224        rbchoice = list(RBnames.keys())
    22192225        ResidueRBSizer = wx.BoxSizer(wx.VERTICAL)
    22202226        if len(RBnames) > 1:
Note: See TracChangeset for help on using the changeset viewer.