Changeset 3357 for trunk/GSASIIpwdGUI.py


Ignore:
Timestamp:
Apr 25, 2018 1:33:02 PM (5 years ago)
Author:
vondreele
Message:

fix problem of input cell a in hexagonal in Unit Cells window. Now calls SetCellValue? to be sure equivalent cell values are changed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIpwdGUI.py

    r3356 r3357  
    29522952        if invalid:
    29532953            return
    2954         OnHklShow(None)
     2954        SetCellValue(tc,Info[tc.GetId()],value)
     2955        OnHklShow(tc.event)
    29552956        wx.CallAfter(UpdateUnitCellsGrid,G2frame,data)
    29562957       
     
    33363337    cellList = []
    33373338    valDict = {}
     3339    Info = {}
    33383340    littleSizer = wx.FlexGridSizer(0,useGUI[1],5,5)
    33393341    for txt,fmt,ifEdit,Id in useGUI[2]:
     
    33413343        if ifEdit:          #a,b,c,etc.
    33423344            cellVal = G2G.ValidatedTxtCtrl(G2frame.dataWindow,controls,6+Id,nDig=fmt,OnLeave=OnCellChange)
     3345            Info[cellVal.GetId()] = Id
    33433346            valSizer = wx.BoxSizer(wx.HORIZONTAL)
    33443347            valSizer.Add(cellVal,0,WACV)
Note: See TracChangeset for help on using the changeset viewer.