Changeset 528


Ignore:
Timestamp:
Apr 3, 2012 2:22:15 PM (10 years ago)
Author:
vondreele
Message:

small fix to periodic table display
fix to PKS type instrument parms GUI

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIElemGUI.py

    r527 r528  
    2323        if 'nt' in os.name:
    2424            self.butWid = 40
    25         self.SetClientSize(wx.Size(130+16*self.butWid, 250))
     25        self.SetClientSize(wx.Size(50+18*self.butWid, 250))
    2626       
    2727        i=0
  • trunk/GSASIIpwdGUI.py

    r526 r528  
    772772    if G2frame.dataDisplay:
    773773        G2frame.dataFrame.Clear()
    774     histoName = G2frame.PatternTree.GetItemPyData(G2frame.PatternId)[-1]
    775     ifHisto = IsHistogramInAnyPhase(G2frame,histoName)
     774    try:
     775        histoName = G2frame.PatternTree.GetItemPyData(G2frame.PatternId)[-1]
     776        ifHisto = IsHistogramInAnyPhase(G2frame,histoName)
     777    except TypeError:       #PKS data never used in a phase as data
     778        ifhisto = False
    776779    G2frame.dataFrame.SetMenuBar(G2frame.dataFrame.BlankMenu)
    777780    G2frame.dataFrame.SetLabel('Instrument Parameters')
Note: See TracChangeset for help on using the changeset viewer.