Changeset 187


Ignore:
Timestamp:
Dec 7, 2010 3:56:10 PM (11 years ago)
Author:
vondreele
Message:

Adding Pawley load/create to menus

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIgrid.py

    r179 r187  
    2929] = [wx.NewId() for _init_coll_MASK_Items in range(1)]
    3030
     31[ wxID_PAWLEYLOAD, wxID_PAWLEYIMPORT,
     32] = [wx.NewId() for _init_coll_PAWLEY_Items in range(2)]
     33
    3134[ wxID_INSTPRMRESET,
    3235] = [wx.NewId() for _init_coll_INST_Items in range(1)]
     
    5457       
    5558    def _init_coll_DrawAtomsMenu(self,parent):
    56         parent.Append(menu=self.DrawAtomEdit, title='Edit')       
    57 
     59        parent.Append(menu=self.DrawAtomEdit, title='Edit')
     60
     61    def _init_coll_PawleyMenu(self,parent):
     62        parent.Append(menu=self.PawleyEdit,title='Pawley Reflections Operations')
     63     
    5864    def _init_coll_IndPeaksMenu(self,parent):
    5965        parent.Append(menu=self.IndPeaksEdit,title='Index Peaks Operations')
     
    122128            help='Delete atoms from drawing set')
    123129
     130    def _init_coll_Pawley_Items(self,parent):
     131        parent.Append(id=wxID_PAWLEYLOAD, kind=wx.ITEM_NORMAL,text='Pawley create',
     132            help='Initialize Pawley reflection list')
     133        parent.Append(id=wxID_PAWLEYIMPORT, kind=wx.ITEM_NORMAL,text='Pawley import',
     134            help='Import Pawley reflection list')
     135
    124136    def _init_coll_IndPeaks_Items(self,parent):
    125137        parent.Append(help='Load/Reload index peaks from peak list',id=wxID_INDXRELOAD,
     
    172184        self.DataMenu = wx.MenuBar()
    173185        self.DrawAtomsMenu = wx.MenuBar()
     186        self.PawleyMenu = wx.MenuBar()
    174187        self.ImageMenu = wx.MenuBar()
    175188        self.MaskMenu = wx.MenuBar()
     
    181194        self.DataEdit = wx.Menu(title='')
    182195        self.DrawAtomEdit = wx.Menu(title='')
     196        self.PawleyEdit = wx.Menu(title='')
    183197        self.ImageEdit = wx.Menu(title='')
    184198        self.MaskEdit = wx.Menu(title='')
     
    193207        self._init_coll_DrawAtomsMenu(self.DrawAtomsMenu)
    194208        self._init_coll_DrawAtom_Items(self.DrawAtomEdit)
     209        self._init_coll_PawleyMenu(self.PawleyMenu)
     210        self._init_coll_Pawley_Items(self.PawleyEdit)
    195211        self._init_coll_ImageMenu(self.ImageMenu)
    196212        self._init_coll_Image_Items(self.ImageEdit)
     
    212228        self.RefineCell.Enable(False)
    213229        self.MakeNewPhase.Enable(False)
    214                
     230       
    215231    def _init_ctrls(self, parent,name=None,size=None,pos=None):
    216232        wx.Frame.__init__(self,parent=parent,style=wx.DEFAULT_FRAME_STYLE ^ wx.CLOSE_BOX,
     
    685701    elif self.PatternTree.GetItemText(parentID) == 'Phases':
    686702        self.PickId = item
    687         data = self.PatternTree.GetItemPyData(item)
     703        data = self.PatternTree.GetItemPyData(item)           
    688704        G2phG.UpdatePhaseData(self,item,data,oldPage)
    689705    elif self.PatternTree.GetItemText(item) == 'Comments':
Note: See TracChangeset for help on using the changeset viewer.