Changeset 1401 for trunk/GSASIIplot.py
- Timestamp:
- Jun 30, 2014 12:29:01 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIplot.py
r1399 r1401 452 452 453 453 def OnPlotKeyPress(event): 454 try: #one way to check if key stroke will work on plot 455 Parms,Parms2 = G2frame.PatternTree.GetItemPyData(G2gd.GetPatternTreeItemId(G2frame,G2frame.PatternId, 'Instrument Parameters')) 456 except TypeError: 457 G2frame.G2plotNB.status.SetStatusText('Select '+plottype+' pattern first',1) 458 return 454 459 newPlot = False 455 460 if event.key == 'w': … … 611 616 612 617 except TypeError: 613 G2frame.G2plotNB.status.SetStatusText('Select '+plottype+' p owder pattern first',1)618 G2frame.G2plotNB.status.SetStatusText('Select '+plottype+' pattern first',1) 614 619 615 620 def OnPress(event): #ugh - this removes a matplotlib error for mouse clicks in log plots
Note: See TracChangeset
for help on using the changeset viewer.