Changeset 3714 for trunk/GSASIIphsGUI.py
- Timestamp:
- Oct 31, 2018 12:20:00 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIphsGUI.py
r3703 r3714 5486 5486 drawAtoms.ClearSelection() 5487 5487 G2plt.PlotStructure(G2frame,data) 5488 else: 5489 G2G.G2MessageBox(G2frame,'Select atoms first') 5488 5490 5489 5491 def DrawAtomLabel(event): … … 5506 5508 drawAtoms.ClearSelection() 5507 5509 G2plt.PlotStructure(G2frame,data) 5510 else: 5511 G2G.G2MessageBox(G2frame,'Select atoms first') 5508 5512 5509 5513 def DrawAtomColor(event): … … 5543 5547 G2frame.GetStatusBar().SetStatusText('',1) 5544 5548 G2plt.PlotStructure(G2frame,data) 5549 else: 5550 G2G.G2MessageBox(G2frame,'Select atoms first') 5545 5551 5546 5552 def ResetAtomColors(event): … … 5576 5582 drawAtoms.ClearSelection() #do I really want to do this? 5577 5583 G2plt.PlotStructure(G2frame,data) 5584 else: 5585 G2G.G2MessageBox(G2frame,'Select atoms first') 5578 5586 5579 5587 def noDuplicate(xyz,atomData): #be careful where this is used - it's slow … … 5638 5646 drawAtoms.ClearSelection() 5639 5647 G2plt.PlotStructure(G2frame,data) 5648 else: 5649 G2G.G2MessageBox(G2frame,'Select atoms first') 5640 5650 5641 5651 def AddSphere(event): … … 5751 5761 drawAtoms.ClearSelection() 5752 5762 G2plt.PlotStructure(G2frame,data) 5763 else: 5764 G2G.G2MessageBox(G2frame,'Select atoms first') 5753 5765 5754 5766 def FillCoordSphere(event): … … 5798 5810 drawAtoms.ClearSelection() 5799 5811 G2plt.PlotStructure(G2frame,data) 5812 else: 5813 G2G.G2MessageBox(G2frame,'Select atoms first') 5800 5814 5801 5815 def FillUnitCell(event): … … 5849 5863 drawAtoms.ClearSelection() 5850 5864 G2plt.PlotStructure(G2frame,data) 5865 else: 5866 G2G.G2MessageBox(G2frame,'Select atoms first') 5851 5867 5852 5868 def DrawAtomsDelete(event): … … 5861 5877 drawAtoms.ClearSelection() 5862 5878 G2plt.PlotStructure(G2frame,data) 5879 else: 5880 G2G.G2MessageBox(G2frame,'Select atoms first') 5863 5881 event.StopPropagation() 5864 5882 … … 5899 5917 indx = drawAtoms.GetSelectedRows() 5900 5918 if len(indx) < 4: 5919 G2G.G2MessageBox(G2frame,'Select four or more atoms first') 5901 5920 print ('**** ERROR - need 4+ atoms for plane calculation') 5902 5921 return … … 5921 5940 indx = drawAtoms.GetSelectedRows() 5922 5941 if not indx: 5942 G2G.G2MessageBox(G2frame,'Select atoms first') 5923 5943 print ('***** ERROR - no atoms selected') 5924 5944 return … … 5943 5963 indx = drawAtoms.GetSelectedRows() 5944 5964 if len(indx) not in [2,3,4]: 5965 G2G.G2MessageBox(G2frame,'Select 2, 3 or 4 atoms first') 5945 5966 print ('**** ERROR - wrong number of atoms for distance, angle or torsion calculation') 5946 5967 return
Note: See TracChangeset
for help on using the changeset viewer.