Ignore:
Timestamp:
Jul 6, 2017 3:09:41 PM (4 years ago)
Author:
toby
Message:

implement restraint tab selection menu; fix restraint scroll bar problem (remove/comment all DestroyChildren?); consolidate menu generation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branch/2frame/GSASIIconstrGUI.py

    r2911 r2913  
    10611061        notebook tab. Called in :func:`OnPageChanged`
    10621062        '''
    1063 #        if panel.GetSizer(): panel.GetSizer().Clear(True) # N.B. don't use panel.DestroyChildren()
    1064         # because it deletes scrollbars on Mac
     1063        if panel.GetSizer(): panel.GetSizer().Clear(True)
    10651064        Siz = wx.BoxSizer(wx.VERTICAL)
    10661065        Siz.Add((5,5),0)
     
    17761775                refChoice[rbId][i].sort()     
    17771776           
    1778         #VectorRB.DestroyChildren() # bad, deletes scrollbars on Mac!
    1779         if VectorRB.GetSizer():
    1780             VectorRB.GetSizer().Clear(True)
     1777        if VectorRB.GetSizer(): VectorRB.GetSizer().Clear(True)
    17811778        VectorRBDisplay = wx.Panel(VectorRB)
    17821779        VectorRBSizer = wx.BoxSizer(wx.VERTICAL)
     
    20542051                refChoice[rbId][i].sort()     
    20552052           
     2053        if ResidueRB.GetSizer(): ResidueRB.GetSizer().Clear(True)
    20562054        ResidueRBDisplay = wx.Panel(ResidueRB)
    20572055        ResidueRBSizer = wx.BoxSizer(wx.VERTICAL)
Note: See TracChangeset for help on using the changeset viewer.