Changeset 1878 for trunk/GSASIIgrid.py


Ignore:
Timestamp:
Jun 4, 2015 1:49:58 PM (8 years ago)
Author:
vondreele
Message:

refactor DDataGUI - mostly move event routines to be inside respective sizer routines
Enable Flack parameter - function OK; derivatives need work
Allow inversion of noncentrosymmetric structures in SymOpDialog? - to test enantiomers
some work to make pdf stuff neutron TOF friendly - not complete
fix Debye background function - now works; refactor result printing for it

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIgrid.py

    r1852 r1878  
    237237            self.force = wx.RadioBox(panel,-1,'Force to unit cell?',choices=choice)
    238238            self.force.Bind(wx.EVT_RADIOBOX, self.OnOpSelect)
    239             mainSizer.Add(self.force,0,WACV)
    240         mainSizer.Add((5,5),0)
    241         if SGData['SGInv']:
    242             choice = ['No','Yes']
    243             self.inv = wx.RadioBox(panel,-1,'Choose inversion?',choices=choice)
    244             self.inv.Bind(wx.EVT_RADIOBOX, self.OnOpSelect)
    245             mainSizer.Add(self.inv,0,WACV)
    246         mainSizer.Add((5,5),0)
     239            mainSizer.Add(self.force,0,WACV|wx.TOP,5)
     240#        if SGData['SGInv']:
     241        choice = ['No','Yes']
     242        self.inv = wx.RadioBox(panel,-1,'Choose inversion?',choices=choice)
     243        self.inv.Bind(wx.EVT_RADIOBOX, self.OnOpSelect)
     244        mainSizer.Add(self.inv,0,WACV)
    247245        if SGData['SGLatt'] != 'P':
    248246            LattOp = G2spc.Latt2text(SGData['SGLatt']).split(';')
     
    250248            self.latt.Bind(wx.EVT_RADIOBOX, self.OnOpSelect)
    251249            mainSizer.Add(self.latt,0,WACV)
    252         mainSizer.Add((5,5),0)
    253250        if SGData['SGLaue'] in ['-1','2/m','mmm','4/m','4/mmm']:
    254251            Ncol = 2
     
    261258            majorDimension=Ncol)
    262259        self.oprs.Bind(wx.EVT_RADIOBOX, self.OnOpSelect)
    263         mainSizer.Add(self.oprs,0,WACV)
    264         mainSizer.Add((5,5),0)
     260        mainSizer.Add(self.oprs,0,WACV|wx.BOTTOM,5)
    265261        mainSizer.Add(wx.StaticText(panel,-1,"   Choose unit cell?"),0,WACV)
    266         mainSizer.Add((5,5),0)
    267262        cellSizer = wx.BoxSizer(wx.HORIZONTAL)
    268         cellSizer.Add((5,0),0)
    269263        cellName = ['X','Y','Z']
    270264        self.cell = []
     
    275269            self.cell[-1].Bind(wx.EVT_SPINCTRL, self.OnOpSelect)
    276270            cellSizer.Add(self.cell[-1],0,WACV)
    277         mainSizer.Add(cellSizer,0,)
     271        mainSizer.Add(cellSizer,0,WACV|wx.BOTTOM,5)
    278272        if self.New:
    279273            choice = ['No','Yes']
     
    281275            self.new.Bind(wx.EVT_RADIOBOX, self.OnOpSelect)
    282276            mainSizer.Add(self.new,0,WACV)
    283         mainSizer.Add((5,5),0)
    284277
    285278        OkBtn = wx.Button(panel,-1,"Ok")
     
    300293
    301294    def OnOpSelect(self,event):
    302         if self.SGData['SGInv']:
    303             self.OpSelected[0] = self.inv.GetSelection()
     295#        if self.SGData['SGInv']:
     296        self.OpSelected[0] = self.inv.GetSelection()
    304297        if self.SGData['SGLatt'] != 'P':
    305298            self.OpSelected[1] = self.latt.GetSelection()
Note: See TracChangeset for help on using the changeset viewer.