Changeset 1889 for trunk/GSASIIgrid.py


Ignore:
Timestamp:
Jun 15, 2015 3:00:17 PM (7 years ago)
Author:
toby
Message:

Add fixed background points; animate dragging points and lines; add fixed bkg fit routine (bkg peaks buggy\!)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIgrid.py

    r1878 r1889  
    780780        self.BackEdit.Append(id=wxID_PEAKSMOVE, kind=wx.ITEM_NORMAL,text='Move peaks',
    781781            help='Move background peaks to Peak List')
    782            
     782        self.BackFixed = wx.Menu(title='') # fixed background point menu
     783        self.BackMenu.Append(menu=self.BackFixed, title='Fixed Points')
     784        self.wxID_BackPts = {}
     785        self.wxID_BackPts['Add'] = wx.NewId() # N.B. not using wxID_ global as for other menu items
     786        self.BackFixed.Append(id=self.wxID_BackPts['Add'], kind=wx.ITEM_RADIO,text='Add',
     787            help='Add fixed background points with mouse clicks')
     788        self.wxID_BackPts['Move'] = wx.NewId()
     789        item = self.BackFixed.Append(id=self.wxID_BackPts['Move'], kind=wx.ITEM_RADIO,text='Move',
     790            help='Move selected fixed background points with mouse drags')
     791        item.Check(True)
     792        self.wxID_BackPts['Del'] = wx.NewId()
     793        self.BackFixed.Append(id=self.wxID_BackPts['Del'], kind=wx.ITEM_RADIO,text='Delete',
     794            help='Delete fixed background points with mouse clicks')
     795        self.wxID_BackPts['Fit'] = wx.NewId()
     796        self.BackFixed.Append(id=self.wxID_BackPts['Fit'], kind=wx.ITEM_NORMAL,text='Fit background',
     797            help='Fit background function to fixed background points')
    783798        self.PostfillDataMenu()
    784799           
Note: See TracChangeset for help on using the changeset viewer.