Changeset 1005 for trunk/GSASIIplot.py
- Timestamp:
- Jul 22, 2013 1:00:52 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIplot.py
r1004 r1005 1026 1026 cb.SetValue(' key press') 1027 1027 wx.CallAfter(OnPlotKeyPress,event) 1028 try: 1029 Page.canvas.SetFocus() # redirect the Focus from the button back to the plot 1030 except: 1031 pass 1032 1028 Page.canvas.SetFocus() # redirect the Focus from the button back to the plot 1033 1029 1034 1030 def OnMotion(event): … … 2148 2144 if event.key in 'l': 2149 2145 wx.CallAfter(OnImPlotKeyPress,event) 2150 try: 2151 Page.canvas.SetFocus() # redirect the Focus from the button back to the plot 2152 except: 2153 pass 2146 Page.canvas.SetFocus() # redirect the Focus from the button back to the plot 2154 2147 2155 2148 def OnImPick(event): … … 2750 2743 cb.SetValue(' save as/key:') 2751 2744 wx.CallAfter(OnKey,event) 2752 try: 2753 Page.canvas.SetFocus() # redirect the Focus from the button back to the plot 2754 except: 2755 pass 2745 Page.canvas.SetFocus() # redirect the Focus from the button back to the plot 2756 2746 2757 2747 def OnKey(event): #on key UP!! … … 2782 2772 elif key in ['N']: 2783 2773 drawAtoms = drawingData['Atoms'] 2774 if not len(drawAtoms): #no atoms 2775 return 2784 2776 pI = drawingData['viewPoint'][1] 2777 if not len(pI): 2778 pI = [0,0] 2785 2779 if indx: 2786 2780 pI[0] = indx[pI[1]] … … 2800 2794 elif key in ['P']: 2801 2795 drawAtoms = drawingData['Atoms'] 2796 if not len(drawAtoms): #no atoms 2797 return 2802 2798 pI = drawingData['viewPoint'][1] 2799 if not len(pI): 2800 pI = [0,0] 2803 2801 if indx: 2804 2802 pI[0] = indx[pI[1]]
Note: See TracChangeset
for help on using the changeset viewer.