Changeset 2835 for trunk/GSASIIplot.py


Ignore:
Timestamp:
May 16, 2017 4:02:31 PM (6 years ago)
Author:
vondreele
Message:

add self.scriptable=False to ImportBaseClass?
set it True in various PWDR readers
when selecting points for image calibration, shift key forces selection at cursor
Status bar text changes to reflect this

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIplot.py

    r2829 r2835  
    44894489                ypix = int(ypos*scaley)
    44904490                Int = 0
    4491                 if (0 <= xpix < sizexy[1]) and (0 <= ypix < sizexy[0]):
     4491                if (0 <= xpix < sizexy[0]) and (0 <= ypix < sizexy[1]):
    44924492                    Int = G2frame.ImageZ[ypix][xpix]
    44934493                tth,azm,D,dsp = G2img.GetTthAzmDsp(xpos,ypos,Data)
     
    45714571            elif event.key in ['y',]:
    45724572                Data['invert_y'] = not Data['invert_y']
     4573            else:
     4574                return
    45734575            wx.CallAfter(PlotImage,G2frame,newPlot=True)
    45744576           
     
    48384840                    Xpix = Xpos*scalex
    48394841                    Ypix = Ypos*scaley
    4840                     xpos,ypos,I,J = G2img.ImageLocalMax(G2frame.ImageZ,pixLimit,Xpix,Ypix)
     4842                    if event.key == 'shift':                #force selection at cursor position
     4843                        xpos = Xpix
     4844                        ypos = Ypix
     4845                        I = J = 10
     4846                    else:
     4847                        xpos,ypos,I,J = G2img.ImageLocalMax(G2frame.ImageZ,pixLimit,Xpix,Ypix)
    48414848                    if I and J:
    48424849                        xpos += .5                              #shift to pixel center
Note: See TracChangeset for help on using the changeset viewer.