Ignore:
Timestamp:
May 16, 2020 8:55:12 AM (3 years ago)
Author:
toby
Message:

add R.B. extractor; misc doc updates; plt bug after strip Hs; grid bug: uncompleted edits; mac horz. line fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIdataGUI.py

    r4412 r4421  
    37723772    def OnAddPhase(self,event):
    37733773        'Add a new, empty phase to the tree. Called by Data/Add Phase menu'
     3774        self.CheckNotebook()
    37743775        if not GetGPXtreeItemId(self,self.root,'Phases'):
    37753776            sub = self.GPXtree.AppendItem(parent=self.root,text='Phases')
     
    54265427        self.ResidueRBMenu = wx.Menu(title='')
    54275428        self.ResidueRBMenu.Append(G2G.wxID_RIGIDBODYIMPORT,'Import XYZ','Import rigid body XYZ from file')
    5428         self.ResidueRBMenu.Append(G2G.wxID_RIGIDBODYSAVE,'Save PDB','Save rigid body to PDB file')       
    5429         self.ResidueRBMenu.Append(G2G.wxID_RESIDUETORSSEQ,'Define sequence','Define torsion sequence')
     5429        G2G.Define_wxId('wxID_RIGIDBODYIMP')
     5430        self.ResidueRBMenu.Append(G2G.wxID_RIGIDBODYIMP,'Extract from file',
     5431                                'Extract rigid body from phase file')
     5432        self.ResidueRBMenu.Append(G2G.wxID_RIGIDBODYSAVE,'Save as PDB','Save rigid body to PDB file')       
     5433        self.ResidueRBMenu.Append(G2G.wxID_RESIDUETORSSEQ,'Define torsion','Define torsion sequence')
    54305434        self.ResidueRBMenu.Append(G2G.wxID_RIGIDBODYADD,'Import residues','Import residue rigid bodies from macro file')
     5435        G2G.Define_wxId('wxID_RESBODYSAV')
     5436        self.ResidueRBMenu.Append(G2G.wxID_RESBODYSAV,'Save rigid body','Write a rigid body to a file')
     5437        G2G.Define_wxId('wxID_RESBODYRD')
     5438        self.ResidueRBMenu.Append(G2G.wxID_RESBODYRD,'Read rigid body','Read a rigid body from a file')
    54315439        self.RigidBodyMenu.Append(menu=self.ResidueRBMenu, title='Edit Residue Body')
    54325440        self.PostfillDataMenu()
     
    54375445        self.VectorRBEdit.Append(G2G.wxID_VECTORBODYADD,'Add rigid body','Add vector rigid body')
    54385446        self.VectorBodyMenu.Append(menu=self.VectorRBEdit, title='Edit Vector Body')
     5447        G2G.Define_wxId('wxID_VECTORBODYIMP')
     5448        self.VectorRBEdit.Append(G2G.wxID_VECTORBODYIMP,'Extract from file',
     5449                                'Extract rigid body from phase file')
     5450        G2G.Define_wxId('wxID_VECTORBODYSAV')
     5451        self.VectorRBEdit.Append(G2G.wxID_VECTORBODYSAV,'Save rigid body','Write a rigid body to a file')
     5452        G2G.Define_wxId('wxID_VECTORBODYRD')
     5453        self.VectorRBEdit.Append(G2G.wxID_VECTORBODYRD,'Read rigid body','Read a rigid body from a file')
     5454        G2G.Define_wxId('wxID_VECTORBODYEXTD')
     5455        self.VectorRBEdit.Append(G2G.wxID_VECTORBODYEXTD,'Add translation',
     5456                                'Add translation to existing rigid body')
    54395457        self.PostfillDataMenu()
    54405458
     
    83868404            if grid.IsCellEditControlEnabled(): # complete any grid edits in progress
    83878405                if GSASIIpath.GetConfigValue('debug'): print ('Completing grid edit in%s'%str(grid))
     8406                grid.SaveEditControlValue()
     8407                # not sure if the next two things do anything
    83888408                grid.HideCellEditControl()
    83898409                grid.DisableCellEditControl()
Note: See TracChangeset for help on using the changeset viewer.