- Timestamp:
- Apr 30, 2015 2:38:20 PM (10 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/GSASIIconstrGUI.py ¶
r1770 r1827 1501 1501 refChoice[rbId][i].sort() 1502 1502 1503 VectorRB.DestroyChildren() 1503 #VectorRB.DestroyChildren() # bad, deletes scrollbars on Mac! 1504 if VectorRB.GetSizer(): 1505 VectorRB.GetSizer().Clear(True) 1504 1506 VectorRBDisplay = wx.Panel(VectorRB) 1505 1507 VectorRBSizer = wx.BoxSizer(wx.VERTICAL) … … 1779 1781 refChoice[rbId][i].sort() 1780 1782 1781 ResidueRB.DestroyChildren() 1783 #ResidueRB.DestroyChildren() # bad, deletes scrollbars on Mac! 1784 if ResidueRB.GetSizer(): 1785 ResidueRB.GetSizer().Clear(True) 1782 1786 ResidueRBDisplay = wx.Panel(ResidueRB) 1783 1787 ResidueRBSizer = wx.BoxSizer(wx.VERTICAL) -
TabularUnified trunk/GSASIIddataGUI.py ¶
r1826 r1827 72 72 if not hist and len(keyList): 73 73 DData.G2hist = keyList[0] 74 elif hist: 75 DData.G2hist = hist 74 76 75 77 PWDR = any(['PWDR' in item for item in keyList]) … … 82 84 generalData['Data plot type'] = Obj.GetStringSelection() 83 85 G2plt.PlotSizeStrainPO(G2frame,data,DData.G2hist) 84 wx.CallLater(100,UpdateDData,G2frame,DData,data) 85 # wx.CallLater(100,RepaintHistogramInfo) 86 wx.CallLater(100,UpdateDData,G2frame,DData,data,DData.G2hist) 86 87 87 88 def OnPOhkl(event): … … 101 102 plotSizer = wx.BoxSizer(wx.VERTICAL) 102 103 choice = ['None','Mustrain','Size','Preferred orientation'] 103 plotSel = wx.RadioBox(DData, -1,'Select plot type:',choices=choice,104 plotSel = wx.RadioBox(DData,wx.ID_ANY,'Select plot type:',choices=choice, 104 105 majorDimension=1,style=wx.RA_SPECIFY_COLS) 105 106 plotSel.SetStringSelection(generalData['Data plot type']) … … 108 109 if generalData['Data plot type'] == 'Preferred orientation': 109 110 POhklSizer = wx.BoxSizer(wx.HORIZONTAL) 110 POhklSizer.Add(wx.StaticText(DData, -1,' Plot preferred orientation for H K L: '),0,WACV)111 POhklSizer.Add(wx.StaticText(DData,wx.ID_ANY,' Plot preferred orientation for H K L: '),0,WACV) 111 112 h,k,l = generalData['POhkl'] 112 poAxis = wx.TextCtrl(DData, -1,'%3d %3d %3d'%(h,k,l),style=wx.TE_PROCESS_ENTER)113 poAxis = wx.TextCtrl(DData,wx.ID_ANY,'%3d %3d %3d'%(h,k,l),style=wx.TE_PROCESS_ENTER) 113 114 poAxis.Bind(wx.EVT_TEXT_ENTER,OnPOhkl) 114 115 poAxis.Bind(wx.EVT_KILL_FOCUS,OnPOhkl) … … 135 136 scaleSizer = wx.BoxSizer(wx.HORIZONTAL) 136 137 if 'PWDR' in DData.G2hist: 137 scaleRef = wx.CheckBox(DData, -1,label=' Phase fraction: ')138 scaleRef = wx.CheckBox(DData,wx.ID_ANY,label=' Phase fraction: ') 138 139 elif 'HKLF' in DData.G2hist: 139 scaleRef = wx.CheckBox(DData, -1,label=' Scale factor: ')140 scaleRef = wx.CheckBox(DData,wx.ID_ANY,label=' Scale factor: ') 140 141 scaleRef.SetValue(UseList[DData.G2hist]['Scale'][1]) 141 142 scaleRef.Bind(wx.EVT_CHECKBOX, OnScaleRef) … … 174 175 UseList[DData.G2hist]['Size'][0] = Obj.GetValue() 175 176 G2plt.PlotSizeStrainPO(G2frame,data,DData.G2hist) 176 #wx.CallLater(100,UpdateDData,G2frame,DData,data)177 177 wx.CallLater(100,RepaintHistogramInfo) 178 178 … … 235 235 UseList[item]['Size'][4][i+3] = 0.0 236 236 G2plt.PlotSizeStrainPO(G2frame,data,item) 237 #wx.CallLater(100,UpdateDData,G2frame,DData,data)238 237 wx.CallLater(100,RepaintHistogramInfo) 239 238 … … 241 240 Obj = event.GetEventObject() 242 241 UseList[DData.G2hist]['Mustrain'][0] = Obj.GetValue() 243 #wx.CallLater(100,UpdateDData,G2frame,DData,data)244 242 G2plt.PlotSizeStrainPO(G2frame,data,DData.G2hist) 245 243 wx.CallLater(100,RepaintHistogramInfo) … … 306 304 UseList[item]['Mustrain'][4][i] = vals[i] 307 305 G2plt.PlotSizeStrainPO(G2frame,data,item) 308 #wx.CallLater(100,UpdateDData,G2frame,DData,data)309 306 wx.CallLater(100,RepaintHistogramInfo) 310 307 … … 353 350 UseList[DData.G2hist]['Pref.Ori.'][4] = Order 354 351 UseList[DData.G2hist]['Pref.Ori.'][5] = SetPOCoef(Order,DData.G2hist) 355 #wx.CallLater(100,UpdateDData,G2frame,DData,data)356 352 wx.CallLater(100,RepaintHistogramInfo) 357 353 … … 362 358 else: 363 359 UseList[DData.G2hist]['Pref.Ori.'][0] = 'SH' 364 #wx.CallLater(100,UpdateDData,G2frame,DData,data)365 360 wx.CallLater(100,RepaintHistogramInfo) 366 361 … … 448 443 item = Indx[Obj.GetId()] 449 444 UseList[item[0]]['Extinction'][item[1]] = Obj.GetValue() 450 #wx.CallLater(100,UpdateDData,G2frame,DData,data)451 445 wx.CallLater(100,RepaintHistogramInfo) 452 446 … … 458 452 def TopSizer(name,choices,parm,OnType): 459 453 topSizer = wx.BoxSizer(wx.HORIZONTAL) 460 topSizer.Add(wx.StaticText(DData, -1,name),0,WACV)454 topSizer.Add(wx.StaticText(DData,wx.ID_ANY,name),0,WACV) 461 455 sizeType = wx.ComboBox(DData,wx.ID_ANY,value=UseList[DData.G2hist][parm][0],choices=choices, 462 456 style=wx.CB_READONLY|wx.CB_DROPDOWN) … … 467 461 def LGmixSizer(name,OnVal,OnRef): 468 462 lgmixSizer = wx.BoxSizer(wx.HORIZONTAL) 469 lgmixRef = wx.CheckBox(DData, -1,label='LGmix')463 lgmixRef = wx.CheckBox(DData,wx.ID_ANY,label='LGmix') 470 464 lgmixRef.thisown = False 471 465 lgmixRef.SetValue(UseList[DData.G2hist][name][2][2]) … … 483 477 def ResetSizer(name,OnReset): 484 478 resetSizer = wx.BoxSizer(wx.HORIZONTAL) 485 reset = wx.CheckBox(DData, -1,label='Reset?')479 reset = wx.CheckBox(DData,wx.ID_ANY,label='Reset?') 486 480 reset.thisown = False 487 481 reset.SetValue(False) … … 493 487 def IsoSizer(name,parm,fmt,OnVal,OnRef): 494 488 isoSizer = wx.BoxSizer(wx.HORIZONTAL) 495 sizeRef = wx.CheckBox(DData, -1,label=name)489 sizeRef = wx.CheckBox(DData,wx.ID_ANY,label=name) 496 490 sizeRef.thisown = False 497 491 sizeRef.SetValue(UseList[DData.G2hist][parm][2][0]) … … 509 503 def UniSizer(parm,OnAxis): 510 504 uniSizer = wx.BoxSizer(wx.HORIZONTAL) 511 uniSizer.Add(wx.StaticText(DData, -1,' Unique axis, H K L: '),0,WACV)505 uniSizer.Add(wx.StaticText(DData,wx.ID_ANY,' Unique axis, H K L: '),0,WACV) 512 506 h,k,l = UseList[DData.G2hist][parm][3] 513 Axis = wx.TextCtrl(DData, -1,'%3d %3d %3d'%(h,k,l),style=wx.TE_PROCESS_ENTER)507 Axis = wx.TextCtrl(DData,wx.ID_ANY,'%3d %3d %3d'%(h,k,l),style=wx.TE_PROCESS_ENTER) 514 508 Axis.Bind(wx.EVT_TEXT_ENTER,OnAxis) 515 509 Axis.Bind(wx.EVT_KILL_FOCUS,OnAxis) … … 522 516 UseList[DData.G2hist][parm][1],UseList[DData.G2hist][parm][2],range(2)) 523 517 for Pa,val,ref,id in parms: 524 sizeRef = wx.CheckBox(DData, -1,label=Pa)518 sizeRef = wx.CheckBox(DData,wx.ID_ANY,label=Pa) 525 519 sizeRef.thisown = False 526 520 sizeRef.SetValue(ref) … … 540 534 dataSizer = wx.FlexGridSizer(0,6,5,5) 541 535 for Pa,val,ref,id in parms: 542 sizeRef = wx.CheckBox(DData, -1,label=Pa)536 sizeRef = wx.CheckBox(DData,wx.ID_ANY,label=Pa) 543 537 sizeRef.thisown = False 544 538 sizeRef.SetValue(ref) … … 562 556 dataSizer = wx.FlexGridSizer(0,6,5,5) 563 557 for Pa,val,ref,id in parms: 564 strainRef = wx.CheckBox(DData, -1,label=Pa)558 strainRef = wx.CheckBox(DData,wx.ID_ANY,label=Pa) 565 559 strainRef.thisown = False 566 560 strainRef.SetValue(ref) … … 580 574 parms = zip(Hsnames,UseList[DData.G2hist]['HStrain'][0],UseList[DData.G2hist]['HStrain'][1],range(len(Hsnames))) 581 575 for Pa,val,ref,id in parms: 582 hstrainRef = wx.CheckBox(DData, -1,label=Pa)576 hstrainRef = wx.CheckBox(DData,wx.ID_ANY,label=Pa) 583 577 hstrainRef.thisown = False 584 578 hstrainRef.SetValue(ref) … … 597 591 choice = ['March-Dollase','Spherical harmonics'] 598 592 POtype = choice[['MD','SH'].index(POData[0])] 599 poSizer.Add(wx.StaticText(DData, -1,' Preferred orientation model '),0,WACV)593 poSizer.Add(wx.StaticText(DData,wx.ID_ANY,' Preferred orientation model '),0,WACV) 600 594 POType = wx.ComboBox(DData,wx.ID_ANY,value=POtype,choices=choice, 601 595 style=wx.CB_READONLY|wx.CB_DROPDOWN) … … 603 597 poSizer.Add(POType) 604 598 if POData[0] == 'SH': 605 poSizer.Add(wx.StaticText(DData, -1,' Harmonic order: '),0,WACV)599 poSizer.Add(wx.StaticText(DData,wx.ID_ANY,' Harmonic order: '),0,WACV) 606 600 poOrder = wx.ComboBox(DData,wx.ID_ANY,value=str(POData[4]),choices=[str(2*i) for i in range(18)], 607 601 style=wx.CB_READONLY|wx.CB_DROPDOWN) 608 602 poOrder.Bind(wx.EVT_COMBOBOX,OnPOOrder) 609 603 poSizer.Add(poOrder,0,WACV) 610 poRef = wx.CheckBox(DData, -1,label=' Refine? ')604 poRef = wx.CheckBox(DData,wx.ID_ANY,label=' Refine? ') 611 605 poRef.SetValue(POData[2]) 612 606 poRef.Bind(wx.EVT_CHECKBOX,OnPORef) … … 616 610 def MDDataSizer(POData): 617 611 poSizer = wx.BoxSizer(wx.HORIZONTAL) 618 poRef = wx.CheckBox(DData, -1,label=' March-Dollase ratio: ')612 poRef = wx.CheckBox(DData,wx.ID_ANY,label=' March-Dollase ratio: ') 619 613 poRef.SetValue(POData[2]) 620 614 poRef.Bind(wx.EVT_CHECKBOX,OnPORef) … … 625 619 poVal.Bind(wx.EVT_KILL_FOCUS,OnPOVal) 626 620 poSizer.Add(poVal,0,WACV) 627 poSizer.Add(wx.StaticText(DData, -1,' Unique axis, H K L: '),0,WACV)621 poSizer.Add(wx.StaticText(DData,wx.ID_ANY,' Unique axis, H K L: '),0,WACV) 628 622 h,k,l =POData[3] 629 poAxis = wx.TextCtrl(DData, -1,'%3d %3d %3d'%(h,k,l),style=wx.TE_PROCESS_ENTER)623 poAxis = wx.TextCtrl(DData,wx.ID_ANY,'%3d %3d %3d'%(h,k,l),style=wx.TE_PROCESS_ENTER) 630 624 poAxis.Bind(wx.EVT_TEXT_ENTER,OnPOAxis) 631 625 poAxis.Bind(wx.EVT_KILL_FOCUS,OnPOAxis) … … 651 645 ODFkeys.sort() 652 646 for odf in ODFkeys: 653 ODFSizer.Add(wx.StaticText(DData, -1,odf),0,WACV)647 ODFSizer.Add(wx.StaticText(DData,wx.ID_ANY,odf),0,WACV) 654 648 ODFval = wx.TextCtrl(DData,wx.ID_ANY,'%8.3f'%(POData[5][odf]),style=wx.TE_PROCESS_ENTER) 655 649 ODFIndx[ODFval.GetId()] = odf … … 673 667 finally: 674 668 dlg.Destroy() 675 #wx.CallLater(100,UpdateDData,G2frame,DData,data)676 669 wx.CallLater(100,RepaintHistogramInfo) 677 670 … … 687 680 hkls = G2lat.GenPfHKLs(10,SGData,A) 688 681 shPenalty = wx.BoxSizer(wx.HORIZONTAL) 689 shPenalty.Add(wx.StaticText(DData, -1,' Negative MRD penalty list: '),0,WACV)682 shPenalty.Add(wx.StaticText(DData,wx.ID_ANY,' Negative MRD penalty list: '),0,WACV) 690 683 shPenalty.Add(wx.ComboBox(DData,value=POData[6][0],choices=POData[6], 691 684 style=wx.CB_DROPDOWN),0,WACV) … … 693 686 hklList.Bind(wx.EVT_BUTTON,OnHKLList) 694 687 shPenalty.Add(hklList,0,WACV) 695 shPenalty.Add(wx.StaticText(DData, -1,' Zero MRD tolerance: '),0,WACV)696 shToler = wx.TextCtrl(DData, -1,'%.2f'%(POData[7]),style=wx.TE_PROCESS_ENTER)688 shPenalty.Add(wx.StaticText(DData,wx.ID_ANY,' Zero MRD tolerance: '),0,WACV) 689 shToler = wx.TextCtrl(DData,wx.ID_ANY,'%.2f'%(POData[7]),style=wx.TE_PROCESS_ENTER) 697 690 shToler.Bind(wx.EVT_TEXT_ENTER,OnshToler) 698 691 shToler.Bind(wx.EVT_KILL_FOCUS,OnshToler) … … 702 695 def ExtSizer(): 703 696 extSizer = wx.BoxSizer(wx.HORIZONTAL) 704 extRef = wx.CheckBox(DData, -1,label=' Extinction: ')697 extRef = wx.CheckBox(DData,wx.ID_ANY,label=' Extinction: ') 705 698 extRef.SetValue(UseList[DData.G2hist]['Extinction'][1]) 706 699 extRef.Bind(wx.EVT_CHECKBOX, OnExtRef) … … 716 709 extSizer = wx.BoxSizer(wx.VERTICAL) 717 710 typeSizer = wx.BoxSizer(wx.HORIZONTAL) 718 typeSizer.Add(wx.StaticText(DData, -1,' Extinction type: '),0,WACV)711 typeSizer.Add(wx.StaticText(DData,wx.ID_ANY,' Extinction type: '),0,WACV) 719 712 Choices = ['None','Primary','Secondary Type I','Secondary Type II',] # remove 'Secondary Type I & II' 720 typeTxt = wx.ComboBox(DData, -1,choices=Choices,value=UseList[DData.G2hist]['Extinction'][1],713 typeTxt = wx.ComboBox(DData,wx.ID_ANY,choices=Choices,value=UseList[DData.G2hist]['Extinction'][1], 721 714 style=wx.CB_READONLY|wx.CB_DROPDOWN) 722 715 Indx[typeTxt.GetId()] = [DData.G2hist,1] 723 716 typeTxt.Bind(wx.EVT_COMBOBOX,OnSCExtType) 724 717 typeSizer.Add(typeTxt) 725 typeSizer.Add(wx.StaticText(DData, -1,' Approx: '),0,WACV)718 typeSizer.Add(wx.StaticText(DData,wx.ID_ANY,' Approx: '),0,WACV) 726 719 Choices=['Lorentzian','Gaussian'] 727 approxTxT = wx.ComboBox(DData, -1,choices=Choices,value=UseList[DData.G2hist]['Extinction'][0],720 approxTxT = wx.ComboBox(DData,wx.ID_ANY,choices=Choices,value=UseList[DData.G2hist]['Extinction'][0], 728 721 style=wx.CB_READONLY|wx.CB_DROPDOWN) 729 722 Indx[approxTxT.GetId()] = [DData.G2hist,0] … … 736 729 if 'Tbar' in UseList[DData.G2hist]['Extinction'][2]: #skipped for TOF 737 730 valSizer =wx.BoxSizer(wx.HORIZONTAL) 738 valSizer.Add(wx.StaticText(DData, -1,' Tbar(mm):'),0,WACV)731 valSizer.Add(wx.StaticText(DData,wx.ID_ANY,' Tbar(mm):'),0,WACV) 739 732 tbarVal = wx.TextCtrl(DData,wx.ID_ANY, 740 733 '%.3f'%(UseList[DData.G2hist]['Extinction'][2]['Tbar']),style=wx.TE_PROCESS_ENTER) … … 742 735 tbarVal.Bind(wx.EVT_KILL_FOCUS,OnTbarVal) 743 736 valSizer.Add(tbarVal,0,WACV) 744 valSizer.Add(wx.StaticText(DData, -1,' cos(2ThM):'),0,WACV)737 valSizer.Add(wx.StaticText(DData,wx.ID_ANY,' cos(2ThM):'),0,WACV) 745 738 cos2tm = wx.TextCtrl(DData,wx.ID_ANY, 746 739 '%.3f'%(UseList[DData.G2hist]['Extinction'][2]['Cos2TM']),style=wx.TE_PROCESS_ENTER) … … 759 752 Ekey = ['Eg','Es'] 760 753 for ekey in Ekey: 761 Eref = wx.CheckBox(DData, -1,label=ekey+' : ')754 Eref = wx.CheckBox(DData,wx.ID_ANY,label=ekey+' : ') 762 755 Eref.SetValue(UseList[DData.G2hist]['Extinction'][2][ekey][1]) 763 756 Indx[Eref.GetId()] = [DData.G2hist,ekey] … … 777 770 babSizer = wx.BoxSizer(wx.HORIZONTAL) 778 771 for bab in ['A','U']: 779 babRef = wx.CheckBox(DData, -1,label=' Babinet '+bab+': ')772 babRef = wx.CheckBox(DData,wx.ID_ANY,label=' Babinet '+bab+': ') 780 773 babRef.SetValue(UseList[DData.G2hist]['Babinet']['Bab'+bab][1]) 781 774 Indx[babRef.GetId()] = [DData.G2hist,bab] … … 809 802 G2frame.bottomSizer = ShowHistogramInfo() 810 803 mainSizer.Add(G2frame.bottomSizer) 811 #scrollbars initially set in G2phsGUI.SetPhaseWindow(G2frame.dataFrame,DData,mainSizer)812 #phasePage.SetSize(Size)813 #phasePage.SetScrollbars(10,10,Size[0]/10-4,Size[1]/10-1)814 #mainFrame.setSizePosLeft(Size)815 804 mainSizer.Layout() 816 #G2frame.dataFrame.Layout()817 #G2frame.dataFrame.SendSizeEvent()818 805 G2frame.dataFrame.Refresh() 806 DData.SetVirtualSize(mainSizer.GetMinSize()) 807 G2frame.dataFrame.SendSizeEvent() 819 808 820 809 def ShowHistogramInfo(): … … 831 820 bottomSizer = wx.BoxSizer(wx.VERTICAL) 832 821 showSizer = wx.BoxSizer(wx.HORIZONTAL) 833 useData = wx.CheckBox(DData, -1,label='Use Histogram: '+DData.G2hist+' ?')822 useData = wx.CheckBox(DData,wx.ID_ANY,label='Use Histogram: '+DData.G2hist+' ?') 834 823 showSizer.Add(useData,0,WACV|wx.TOP|wx.BOTTOM,5) 835 824 useData.Bind(wx.EVT_CHECKBOX, OnUseData) … … 896 885 bottomSizer.Add(GenStrainDataSizer(),0,WACV|wx.BOTTOM,5) 897 886 898 bottomSizer.Add(wx.StaticText(DData, -1,' Hydrostatic/elastic strain:'))887 bottomSizer.Add(wx.StaticText(DData,wx.ID_ANY,' Hydrostatic/elastic strain:')) 899 888 bottomSizer.Add(HstrainSizer()) 900 889 … … 914 903 if POData[4]: #SH order > 0 915 904 textJ = G2lat.textureIndex(POData[5]) 916 poSizer.Add(wx.StaticText(DData, -1,' Spherical harmonic coefficients: '+'Texture index: %.3f'%(textJ))905 poSizer.Add(wx.StaticText(DData,wx.ID_ANY,' Spherical harmonic coefficients: '+'Texture index: %.3f'%(textJ)) 917 906 ,0,WACV|wx.TOP|wx.BOTTOM,5) 918 907 poSizer.Add(SHDataSizer(POData),0,WACV|wx.TOP|wx.BOTTOM,5) … … 928 917 return bottomSizer 929 918 930 DData.DestroyChildren()919 #DData.DestroyChildren() # bad, deletes scrollbars on Mac! 931 920 if DData.GetSizer(): 932 921 DData.GetSizer().Clear(True) 933 if not UseList:934 return935 922 mainSizer = wx.BoxSizer(wx.VERTICAL) 936 mainSizer.Add(wx.StaticText(DData, -1,' Histogram data for '+PhaseName+':'),0,WACV)923 mainSizer.Add(wx.StaticText(DData,wx.ID_ANY,' Histogram data for '+PhaseName+':'),0,WACV) 937 924 if DData.G2hist != '': 938 925 topSizer = wx.FlexGridSizer(1,2,5,5) … … 954 941 G2frame.bottomSizer = ShowHistogramInfo() 955 942 mainSizer.Add(G2frame.bottomSizer) 943 elif not UseList: 944 mainSizer.Add(wx.StaticText(DData,wx.ID_ANY,' (This phase has no associated data, use appropriate Edit/Add... menu item)'), 945 0,WACV|wx.TOP,10) 946 956 947 G2phsGUI.SetPhaseWindow(G2frame.dataFrame,DData,mainSizer) -
TabularUnified trunk/GSASIIphsGUI.py ¶
r1823 r1827 240 240 """ 241 241 # UpdateGeneral execution starts here 242 General.DestroyChildren() 242 #General.DestroyChildren() # bad, deletes scrollbars on Mac! 243 if General.GetSizer(): 244 General.GetSizer().Clear(True) 243 245 phaseTypes = ['nuclear','modulated','magnetic','macromolecular'] 244 246 SetupGeneral() … … 3613 3615 3614 3616 # UpdateTexture executable starts here 3615 Texture.DestroyChildren() 3617 #Texture.DestroyChildren() # bad, deletes scrollbars on Mac! 3618 if Texture.GetSizer(): 3619 Texture.GetSizer().Clear(True) 3616 3620 G2frame.dataFrame.SetStatusText('') 3617 3621 generalData = data['General'] … … 4273 4277 # FillRigidBodyGrid executable code starts here 4274 4278 if refresh: 4275 RigidBodies.DestroyChildren() 4279 #RigidBodies.DestroyChildren() # bad, deletes scrollbars on Mac! 4280 if RigidBodies.GetSizer(): 4281 RigidBodies.GetSizer().Clear(True) 4276 4282 general = data['General'] 4277 4283 cx,ct,cs,cia = general['AtomPtrs'] … … 4527 4533 G2plt.PlotStructure(G2frame,data) 4528 4534 4529 RigidBodies.DestroyChildren() 4535 #RigidBodies.DestroyChildren() # bad, deletes scrollbars on Mac! 4536 if RigidBodies.GetSizer(): 4537 RigidBodies.GetSizer().Clear(True) 4530 4538 mainSizer = wx.BoxSizer(wx.VERTICAL) 4531 4539 mainSizer.Add((5,5),0) … … 5138 5146 5139 5147 # UpdateMCSA executable code starts here 5140 G2frame.MCSA.DestroyChildren() 5148 #G2frame.MCSA.DestroyChildren() # bad, deletes scrollbars on Mac! 5149 if G2frame.MCSA.GetSizer(): 5150 G2frame.MCSA.GetSizer().Clear(True) 5141 5151 if not data['Drawing']: #if new drawing - no drawing data! 5142 5152 SetupDrawingData() -
TabularUnified trunk/GSASIIpwdGUI.py ¶
r1820 r1827 3414 3414 wave = G2mth.getWave(Inst) 3415 3415 if G2frame.dataDisplay: 3416 G2frame.dataFrame.DestroyChildren() 3416 G2frame.dataFrame.DestroyChildren() # is this a ScrolledWindow? If so, bad! 3417 3417 G2gd.SetDataMenuBar(G2frame,G2frame.dataFrame.SubstanceMenu) 3418 3418 if not G2frame.dataFrame.GetStatusBar(): … … 4090 4090 Profile[5] = BackSample['Scale'][0]*G2frame.PatternTree.GetItemPyData(BackId)[1][1] 4091 4091 if G2frame.dataDisplay: 4092 G2frame.dataFrame.DestroyChildren() 4092 G2frame.dataFrame.DestroyChildren() # is this a ScrolledWindow? If so, bad! 4093 4093 G2gd.SetDataMenuBar(G2frame,G2frame.dataFrame.ModelMenu) 4094 4094 if not G2frame.dataFrame.GetStatusBar():
Note: See TracChangeset
for help on using the changeset viewer.