Changeset 1029 for trunk/GSASIIgrid.py


Ignore:
Timestamp:
Aug 12, 2013 3:51:57 PM (9 years ago)
Author:
vondreele
Message:

fix some things enCIFr whines about

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIgrid.py

    r1028 r1029  
    24032403        data['F**2'] = True
    24042404        data['minF/sig'] = 0
     2405    if 'Author' not in data:
     2406        data['Author'] = 'no name'
    24052407    #end patch
    24062408
     
    25232525        return LSSizer
    25242526       
     2527    def AuthSizer():
     2528
     2529        def OnAuthor(event):
     2530            data['Author'] = auth.GetValue()
     2531
     2532        Author = data['Author']
     2533        authSizer = wx.BoxSizer(wx.HORIZONTAL)
     2534        authSizer.Add(wx.StaticText(G2frame.dataDisplay,label=' CIF Author (last, first):'),0,wx.ALIGN_CENTER_VERTICAL)
     2535        auth = wx.TextCtrl(G2frame.dataDisplay,-1,value=Author,style=wx.TE_PROCESS_ENTER)
     2536        auth.Bind(wx.EVT_TEXT_ENTER,OnAuthor)
     2537        auth.Bind(wx.EVT_KILL_FOCUS,OnAuthor)
     2538        authSizer.Add(auth,0,wx.ALIGN_CENTER_VERTICAL)
     2539        return authSizer
     2540       
     2541       
    25252542    if G2frame.dataDisplay:
    25262543        G2frame.dataDisplay.Destroy()
     
    25372554    mainSizer.Add((5,5),0)
    25382555    mainSizer.Add(SeqSizer())
     2556    mainSizer.Add((5,5),0)
     2557    mainSizer.Add(AuthSizer())
    25392558    mainSizer.Add((5,5),0)
    25402559       
Note: See TracChangeset for help on using the changeset viewer.