Changeset 3436 for trunk/GSASIIddataGUI.py
- Timestamp:
- Jun 17, 2018 12:42:56 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIddataGUI.py
r3296 r3436 126 126 if 'PWDR' in G2frame.hist and generalData['Type'] != 'magnetic': 127 127 wtSum = G2pwd.PhaseWtSum(G2frame,G2frame.hist) 128 weightFr = UseList[G2frame.hist]['Scale'][0]*generalData['Mass']/wtSum 129 scaleSizer.Add(wx.StaticText(DData,label=' Wt. fraction: %.3f'%(weightFr)),0,WACV) 128 if wtSum: 129 weightFr = UseList[G2frame.hist]['Scale'][0]*generalData['Mass']/wtSum 130 scaleSizer.Add(wx.StaticText(DData,label=' Wt. fraction: %.3f'%(weightFr)),0,WACV) 130 131 return scaleSizer 131 132 … … 795 796 def RepaintHistogramInfo(Scroll=0): 796 797 if 'phoenix' in wx.version(): 798 # if DData.__class__ is not wx._core.ScrolledWindow: 799 # # How to determine window is closed in Phoenix? 800 # return 797 801 G2frame.bottomSizer.Clear(True) 798 802 else: 803 if DData.__class__ is not wx._windows.ScrolledWindow: 804 # fix bug where this is called after the Window is deleted 805 return 799 806 G2frame.bottomSizer.DeleteWindows() 800 801 802 803 804 805 806 807 807 Indx.clear() 808 G2frame.bottomSizer = ShowHistogramInfo() 809 mainSizer.Add(G2frame.bottomSizer) 810 mainSizer.Layout() 811 G2frame.dataWindow.Refresh() 812 DData.SetVirtualSize(mainSizer.GetMinSize()) 813 DData.Scroll(0,Scroll) 814 G2frame.dataWindow.SendSizeEvent() 808 815 809 816 def ShowHistogramInfo():
Note: See TracChangeset
for help on using the changeset viewer.