Changeset 4654 for trunk/GSASIIphsGUI.py


Ignore:
Timestamp:
Nov 10, 2020 11:24:39 AM (13 months ago)
Author:
toby
Message:

new video tutorial; misc minor RB GUI fixes for Windows; option to show GPX sizes; remove use of deprecated imp module

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIphsGUI.py

    r4647 r4654  
    77707770            drawingData['selectedAtoms'] = drawAtoms.GetSelectedRows()
    77717771            G2plt.PlotStructure(G2frame,data)
    7772 
     7772            G2frame.Raise()
     7773           
    77737774        def RowSelect(event):
    77747775            r,c =  event.GetRow(),event.GetCol()
     
    1066610667                    i for i,a in enumerate(data['Atoms']) if a[0] == cryatom]
    1066710668                G2plt.PlotStructure(G2frame,data,False,UpdateTable)
    10668                 misc['showSelect'].SetLabelText(cryatom)
     10669                misc['showSelect'].setByString(cryatom)
     10670                G2frame.Raise()
     10671                #RigidBodies.atomsGrid.SetFocus()
    1066910672               
    1067010673            def OnSymRadioSet(event):
     
    1294012943    def rbKeyPress(event):
    1294112944        '''Respond to a Tab to highlight the next RB or crystal atom
     12945        TODO: this is not getting called in Windows. Is a bind needed elsewhere?
    1294212946        '''
    1294312947        if 'testRBObj' not in data: return
     
    1298112985                if data['Atoms'][I][0] in data['testRBObj']['availAtoms']:
    1298212986                    data['testRBObj']['CRYhighLight'] = [I]
    12983                     misc['showSelect'].SetLabelText(data['Atoms'][I][0])
     12987                    misc['showSelect'].setByString(data['Atoms'][I][0])
    1298412988                    break
    1298512989        G2plt.PlotStructure(G2frame,data,False,misc['UpdateTable'])
     12990        G2frame.Raise()
     12991        return
     12992   
    1298612993    if data['General']['Type'] not in ['faulted',] and not data['General']['Modulated']:
    1298712994        RigidBodies = wx.ScrolledWindow(G2frame.phaseDisplay)
    1298812995        G2frame.phaseDisplay.AddPage(RigidBodies,'RB Models')
     12996        # note the bind is here so that it is only done once, but
     12997        # TODO: might need to be on a different widget for Windows
    1298912998        RigidBodies.Bind(wx.EVT_CHAR,rbKeyPress)
    1299012999        Pages.append('RB Models')
Note: See TracChangeset for help on using the changeset viewer.