Changeset 2674 for trunk/GSASIIimgGUI.py


Ignore:
Timestamp:
Jan 30, 2017 2:25:48 PM (5 years ago)
Author:
vondreele
Message:

prevent delete if PWDR if corresponding PDF exists
use PickElements? instead of PickElement? - allows multiple selection, blacks out ones already picked & can unpick a pick
add delete spots option to masks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIimgGUI.py

    r2673 r2674  
    13201320                G2frame.ErrorDialog('Auto spot search error',Error)
    13211321            wx.CallAfter(UpdateMasks,G2frame,data)
    1322             wx.CallAfter(G2plt.PlotExposedImage,G2frame,event=event)               
     1322            wx.CallAfter(G2plt.PlotExposedImage,G2frame,event=event)
     1323
     1324    def OnDeleteSpotMask(event):
     1325        data['Points'] = []
     1326        wx.CallAfter(UpdateMasks,G2frame,data)
     1327        wx.CallAfter(G2plt.PlotExposedImage,G2frame,event=event)         
    13231328           
    13241329    def ToggleSpotMaskMode(event):
     
    15131518    G2frame.dataFrame.Bind(wx.EVT_MENU, OnSaveMask, id=G2gd.wxID_MASKSAVE)
    15141519    G2frame.dataFrame.Bind(wx.EVT_MENU, OnAutoSpotMask, id=G2gd.wxID_FINDSPOTS)
     1520    G2frame.dataFrame.Bind(wx.EVT_MENU, OnDeleteSpotMask, id=G2gd.wxID_DELETESPOTS)
    15151521    G2frame.dataFrame.Bind(wx.EVT_MENU, ToggleSpotMaskMode, id=G2gd.wxID_NEWMASKSPOT)
    15161522    G2frame.dataFrame.Bind(wx.EVT_MENU, OnNewArcMask, id=G2gd.wxID_NEWMASKARC)
Note: See TracChangeset for help on using the changeset viewer.