Ignore:
Timestamp:
Mar 9, 2019 2:58:21 PM (4 years ago)
Author:
vondreele
Message:

since id is a python routine which could be useful in debugging, replaced id with Id (or pid in one place)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIddataGUI.py

    r3746 r3848  
    391391        parms = zip([' Equatorial '+parmName,' Axial '+parmName],
    392392            UseList[G2frame.hist][parm][1],UseList[G2frame.hist][parm][2],range(2))
    393         for Pa,val,ref,id in parms:
     393        for Pa,val,ref,Id in parms:
    394394            sizeRef = wx.CheckBox(DData,wx.ID_ANY,label=Pa)
    395395            sizeRef.thisown = False
    396396            sizeRef.SetValue(ref)
    397             Indx[sizeRef.GetId()] = [G2frame.hist,id]
     397            Indx[sizeRef.GetId()] = [G2frame.hist,Id]
    398398            sizeRef.Bind(wx.EVT_CHECKBOX, OnRef)
    399399            dataSizer.Add(sizeRef,0,WACV|wx.LEFT,5)
    400400#        azmthOff = G2G.ValidatedTxtCtrl(G2frame.dataDisplay,data,'azmthOff',nDig=(10,2),typeHint=float,OnLeave=OnAzmthOff)
    401401            sizeVal = wx.TextCtrl(DData,wx.ID_ANY,fmt%(val),style=wx.TE_PROCESS_ENTER)
    402             Indx[sizeVal.GetId()] = [G2frame.hist,id]
     402            Indx[sizeVal.GetId()] = [G2frame.hist,Id]
    403403            sizeVal.Bind(wx.EVT_TEXT_ENTER,OnVal)
    404404            sizeVal.Bind(wx.EVT_KILL_FOCUS,OnVal)
     
    410410            UseList[G2frame.hist]['Size'][5],range(6))
    411411        dataSizer = wx.FlexGridSizer(0,6,5,5)
    412         for Pa,val,ref,id in parms:
     412        for Pa,val,ref,Id in parms:
    413413            sizeRef = wx.CheckBox(DData,wx.ID_ANY,label=Pa)
    414414            sizeRef.thisown = False
    415415            sizeRef.SetValue(ref)
    416             Indx[sizeRef.GetId()] = [G2frame.hist,id]
     416            Indx[sizeRef.GetId()] = [G2frame.hist,Id]
    417417            sizeRef.Bind(wx.EVT_CHECKBOX, OnSizeRef)
    418418            dataSizer.Add(sizeRef,0,WACV)
    419419#        azmthOff = G2G.ValidatedTxtCtrl(G2frame.dataDisplay,data,'azmthOff',nDig=(10,2),typeHint=float,OnLeave=OnAzmthOff)
    420420            sizeVal = wx.TextCtrl(DData,wx.ID_ANY,'%.3f'%(val),style=wx.TE_PROCESS_ENTER)
    421             Indx[sizeVal.GetId()] = [G2frame.hist,id]
     421            Indx[sizeVal.GetId()] = [G2frame.hist,Id]
    422422            sizeVal.Bind(wx.EVT_TEXT_ENTER,OnSizeVal)
    423423            sizeVal.Bind(wx.EVT_KILL_FOCUS,OnSizeVal)
     
    434434        parms = zip(Snames,UseList[G2frame.hist]['Mustrain'][4],UseList[G2frame.hist]['Mustrain'][5],range(numb))
    435435        dataSizer = wx.FlexGridSizer(0,6,5,5)
    436         for Pa,val,ref,id in parms:
     436        for Pa,val,ref,Id in parms:
    437437            strainRef = wx.CheckBox(DData,wx.ID_ANY,label=Pa)
    438438            strainRef.thisown = False
    439439            strainRef.SetValue(ref)
    440             Indx[strainRef.GetId()] = [G2frame.hist,id]
     440            Indx[strainRef.GetId()] = [G2frame.hist,Id]
    441441            strainRef.Bind(wx.EVT_CHECKBOX, OnStrainRef)
    442442            dataSizer.Add(strainRef,0,WACV)
    443443#        azmthOff = G2G.ValidatedTxtCtrl(G2frame.dataDisplay,data,'azmthOff',nDig=(10,2),typeHint=float,OnLeave=OnAzmthOff)
    444444            strainVal = wx.TextCtrl(DData,wx.ID_ANY,'%.1f'%(val),style=wx.TE_PROCESS_ENTER)
    445             Indx[strainVal.GetId()] = [G2frame.hist,id]
     445            Indx[strainVal.GetId()] = [G2frame.hist,Id]
    446446            strainVal.Bind(wx.EVT_TEXT_ENTER,OnStrainVal)
    447447            strainVal.Bind(wx.EVT_KILL_FOCUS,OnStrainVal)
     
    454454        Hsnames = G2spc.HStrainNames(SGData)
    455455        parms = zip(Hsnames,UseList[G2frame.hist]['HStrain'][0],UseList[G2frame.hist]['HStrain'][1],range(len(Hsnames)))
    456         for Pa,val,ref,id in parms:
     456        for Pa,val,ref,Id in parms:
    457457            hstrainRef = wx.CheckBox(DData,wx.ID_ANY,label=Pa)
    458458            hstrainRef.thisown = False
    459459            hstrainRef.SetValue(ref)
    460             Indx[hstrainRef.GetId()] = [G2frame.hist,id]
     460            Indx[hstrainRef.GetId()] = [G2frame.hist,Id]
    461461            hstrainRef.Bind(wx.EVT_CHECKBOX, OnHstrainRef)
    462462            hstrainSizer.Add(hstrainRef,0,WACV|wx.LEFT,5)
    463463#        azmthOff = G2G.ValidatedTxtCtrl(G2frame.dataDisplay,data,'azmthOff',nDig=(10,2),typeHint=float,OnLeave=OnAzmthOff)
    464464            hstrainVal = wx.TextCtrl(DData,wx.ID_ANY,'%.3g'%(val),style=wx.TE_PROCESS_ENTER)
    465             Indx[hstrainVal.GetId()] = [G2frame.hist,id]
     465            Indx[hstrainVal.GetId()] = [G2frame.hist,Id]
    466466            hstrainVal.Bind(wx.EVT_TEXT_ENTER,OnHstrainVal)
    467467            hstrainVal.Bind(wx.EVT_KILL_FOCUS,OnHstrainVal)
Note: See TracChangeset for help on using the changeset viewer.