Changeset 1926 for trunk/GSASIIgrid.py
- Timestamp:
- Jul 13, 2015 4:10:42 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIgrid.py
r1925 r1926 351 351 mainSizer.Add(wx.StaticText(self.panel,-1,'H atom add controls for phase %s:'%(phase['General']['Name'])), 352 352 0,wx.LEFT|wx.TOP,10) 353 mainSizer.Add(wx.StaticText(self.panel,-1,'NB: Check selections as they may not be correct'),0,WACV|wx.LEFT,10) 353 354 mainSizer.Add(wx.StaticText(self.panel,-1," Atom: Add # H's Neighbors, dist"),0,wx.TOP|wx.LEFT,5) 354 355 nHatms = ['0','1','2','3'] … … 359 360 nH = 1 #for O atom 360 361 if 'C' in neigh[0] or 'N' in neigh[0]: 361 nH = 4-len(neigh[1]) 362 neigh[2] = nH 362 nH = 4-len(neigh[1][0]) 363 363 checks = wx.BoxSizer(wx.HORIZONTAL) 364 364 Ids = [] … … 374 374 dataSizer.Add(checks,0,WACV) 375 375 lineSizer = wx.BoxSizer(wx.HORIZONTAL) 376 for bond in neigh[1] :376 for bond in neigh[1][0]: 377 377 lineSizer.Add(wx.StaticText(self.panel,-1,' %s, %.3f'%(bond[0],bond[1])),0,WACV) 378 dataSizer.Add(lineSizer,0,WACV )378 dataSizer.Add(lineSizer,0,WACV|wx.RIGHT,10) 379 379 mainSizer.Add(dataSizer,0,wx.LEFT,5) 380 380 … … 389 389 btnSizer.Add(CancelBtn) 390 390 btnSizer.Add((20,20),1) 391 mainSizer.Add(btnSizer,0,wx.EXPAND|wx.BOTTOM|wx.TOP, 10) 391 mainSizer.Add(btnSizer,0,wx.BOTTOM|wx.TOP, 10) 392 size = np.array(self.GetSize()) 393 self.panel.SetupScrolling() 392 394 self.panel.SetSizer(mainSizer) 393 self.panel.SetupScrolling() 395 self.panel.SetAutoLayout(1) 396 size = [size[0]-5,size[1]-20] #this fiddling is needed for older wx! 397 self.panel.SetSize(size) 394 398 395 399 def GetData(self):
Note: See TracChangeset
for help on using the changeset viewer.