Changeset 2611 for trunk/GSASIIplot.py
- Timestamp:
- Jan 4, 2017 10:46:36 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/GSASIIplot.py ¶
r2607 r2611 4124 4124 Page.figure.suptitle('Defining Polygon mask (use right-mouse to end)',color='r',fontweight='bold') 4125 4125 Page.canvas.draw() 4126 elif G2frame.MaskKey == 's':4127 new,plotNum,Page,Plot,lim = G2frame.G2plotNB.FindPlotTab('2D Powder Image','mpl',newImage=False)4128 Page.figure.suptitle('Left-click to create a spot mask',color='r',fontweight='bold')4129 Page.canvas.draw()4130 4126 elif G2frame.MaskKey == 'a': 4131 4127 new,plotNum,Page,Plot,lim = G2frame.G2plotNB.FindPlotTab('2D Powder Image','mpl',newImage=False) … … 4155 4151 ''' 4156 4152 new,plotNum,Page,Plot,lim = G2frame.G2plotNB.FindPlotTab('2D Powder Image','mpl',newImage=False) 4157 if G2frame.MaskKey == ' m':4153 if G2frame.MaskKey == 's': 4158 4154 G2frame.MaskKey = '' 4159 Page.Choice[-1] = ' m: start multiple spot mask mode'4155 Page.Choice[-1] = 's: start multiple spot mask mode' 4160 4156 wx.CallAfter(PlotImage,G2frame,newImage=True) 4161 4157 else: 4162 G2frame.MaskKey = ' m'4158 G2frame.MaskKey = 's' 4163 4159 (x0,y0),(x1,y1) = Plot.get_position().get_points() 4164 Page.figure.suptitle('Multiple spot mode on, press mor right-click to end',color='r',fontweight='bold')4165 Page.Choice[-1] = ' m: stop multiple spot mask mode'4160 Page.figure.suptitle('Multiple spot mode on, press s or right-click to end',color='r',fontweight='bold') 4161 Page.Choice[-1] = 's: stop multiple spot mask mode' 4166 4162 Page.canvas.draw() 4167 4163 … … 4280 4276 return 4281 4277 if treeItem == 'Masks': 4282 if event.key == ' m': # implement multiple spot mode4278 if event.key == 's': # implement multiple spot mode 4283 4279 ToggleMultiSpotMask(G2frame) 4284 4280 return … … 4302 4298 Page.canvas.draw() 4303 4299 return 4304 elif event.key in ['l','p','f',' s','a','r']:4300 elif event.key in ['l','p','f','a','r']: 4305 4301 G2frame.MaskKey = event.key 4306 4302 OnStartMask(G2frame) … … 4634 4630 if not Xpos or not Ypos or Page.toolbar._active: #got point out of frame or zoom/pan selected 4635 4631 return 4636 if G2frame.MaskKey == ' m':4632 if G2frame.MaskKey == 's': 4637 4633 if event.button == 3: 4638 4634 ToggleMultiSpotMask(G2frame) … … 4825 4821 Page.keyPress = OnImPlotKeyPress 4826 4822 elif G2frame.PatternTree.GetItemText(G2frame.PickId) in ['Masks',]: 4827 Page.Choice = [' key press','l: log(I) on',' s: spot mask','a: arc mask','r: ring mask',4823 Page.Choice = [' key press','l: log(I) on','a: arc mask','r: ring mask', 4828 4824 'p: polygon mask','f: frame mask', 4829 4825 't: add spot mask at mouse position'] 4830 Page.Choice.append(' m: start multiple spot mask mode') # this must be the last choice4826 Page.Choice.append('s: start multiple spot mask mode') # this must be the last choice 4831 4827 if G2frame.logPlot: 4832 4828 Page.Choice[1] = 'l: log(I) off'
Note: See TracChangeset
for help on using the changeset viewer.