Changeset 4421 for trunk/GSASIIdataGUI.py
- Timestamp:
- May 16, 2020 8:55:12 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIdataGUI.py
r4412 r4421 3772 3772 def OnAddPhase(self,event): 3773 3773 'Add a new, empty phase to the tree. Called by Data/Add Phase menu' 3774 self.CheckNotebook() 3774 3775 if not GetGPXtreeItemId(self,self.root,'Phases'): 3775 3776 sub = self.GPXtree.AppendItem(parent=self.root,text='Phases') … … 5426 5427 self.ResidueRBMenu = wx.Menu(title='') 5427 5428 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') 5430 5434 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') 5431 5439 self.RigidBodyMenu.Append(menu=self.ResidueRBMenu, title='Edit Residue Body') 5432 5440 self.PostfillDataMenu() … … 5437 5445 self.VectorRBEdit.Append(G2G.wxID_VECTORBODYADD,'Add rigid body','Add vector rigid body') 5438 5446 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') 5439 5457 self.PostfillDataMenu() 5440 5458 … … 8386 8404 if grid.IsCellEditControlEnabled(): # complete any grid edits in progress 8387 8405 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 8388 8408 grid.HideCellEditControl() 8389 8409 grid.DisableCellEditControl()
Note: See TracChangeset
for help on using the changeset viewer.