Ignore:
Timestamp:
Jul 2, 2017 9:33:22 AM (5 years ago)
Author:
vondreele
Message:

fixes to window resize issues

File:
1 edited

Legend:

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

    r2890 r2893  
    17791779        #print 'OnPageChanged'
    17801780        page = event.GetSelection()
     1781        G2frame.restrBook.SetSize(G2frame.dataWindow.GetClientSize())    #TODO -almost right
    17811782        text = G2frame.restrBook.GetPageText(page)
    17821783        G2frame.dataFrame.RestraintEdit.SetLabel(G2gd.wxID_RESRCHANGEVAL,'Change value')
     
    18521853    G2frame.SetLabel(G2frame.GetLabel().split('||')[0]+' || '+'restraints for '+phaseName)
    18531854    G2frame.dataWindow.ClearData()
     1855    G2frame.restrBook = G2G.GSNoteBook(parent=G2frame.dataWindow,size=G2frame.dataWindow.GetClientSize())
    18541856   
    18551857    G2frame.dataWindow.RestraintEdit.Enable(G2gd.wxID_RESTSELPHASE,False)
     
    18621864        G2frame.dataWindow.Bind(wx.EVT_MENU, OnAddAARestraint, id=G2gd.wxID_AARESTRAINTADD)
    18631865        G2frame.dataWindow.Bind(wx.EVT_MENU, OnPlotAARestraint, id=G2gd.wxID_AARESTRAINTPLOT)
    1864     G2frame.restrBook = G2G.GSNoteBook(parent=G2frame.dataWindow,size=G2frame.dataWindow.GetClientSize())
    18651866   
    18661867    # clear menu and menu pointers
Note: See TracChangeset for help on using the changeset viewer.