Changeset 3101
- Timestamp:
- Sep 28, 2017 9:16:15 AM (8 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/GSASIIdataGUI.py ¶
r3095 r3101 4611 4611 #if Sizer.GetItemCount() == 1: # not wx 2.8 4612 4612 if len(Sizer.GetChildren()) == 1: # handle cases with a single grid in DataWindow differently 4613 # note that Grid's scroll bars must be turned on with .SetScrollRate(1 ,1)4613 # note that Grid's scroll bars must be turned on with .SetScrollRate(10,10) 4614 4614 # just after the call to .GSGrid() 4615 4615 if isinstance(Sizer.GetItem(0).GetWindow(), G2G.GSGrid): … … 4621 4621 return 4622 4622 self.SetAutoLayout(True) 4623 self.SetScrollRate(1 ,1)4623 self.SetScrollRate(10,10) 4624 4624 self.SendSizeEvent() 4625 4625 … … 7186 7186 G2frame.dataWindow.currentGrids = [] 7187 7187 G2frame.dataDisplay = G2G.GSGrid(parent=G2frame.dataWindow) 7188 G2frame.dataDisplay.SetScrollRate(1 ,1)7188 G2frame.dataDisplay.SetScrollRate(10,10) 7189 7189 G2frame.dataWindow.GetSizer().Add(G2frame.dataDisplay,1,wx.ALL|wx.EXPAND) 7190 7190 G2frame.SeqTable = G2G.Table([list(cl) for cl in zip(*G2frame.colList)], # convert from columns to rows -
TabularUnified trunk/GSASIIphsGUI.py ¶
r3100 r3101 991 991 phasePage.SetSizer(mainSizer) 992 992 phasePage.SetAutoLayout(True) 993 phasePage.SetScrollRate(1 ,1)993 phasePage.SetScrollRate(10,10) 994 994 phasePage.SendSizeEvent() 995 995 phasePage.Scroll(0,Scroll) -
TabularUnified trunk/GSASIIplot.py ¶
r3082 r3101 5711 5711 uColors = [Rd,Gr,Bl,Wt-Bc, Wt-Bc,Wt-Bc,Wt-Bc,Wt-Bc, Wt-Bc,Wt-Bc,Wt-Bc,Wt-Bc] 5712 5712 G2frame.tau = 0. 5713 G2frame.seq = 0 5713 5714 5714 5715 def OnKeyBox(event): … … 5856 5857 elif key == '-': 5857 5858 G2frame.tau -= 0.1 5858 G2frame.tau %= 1. #force 0-1 range 5859 G2frame.tau %= 1. #force 0-1 range; makes loop 5859 5860 G2frame.G2plotNB.status.SetStatusText('Modulation tau = %.2f'%(G2frame.tau),1) 5860 5861 data['Drawing']['Atoms'],Fade = G2mth.ApplyModulation(data,G2frame.tau) #modifies drawing atom array! … … 5864 5865 Fade += 1 5865 5866 Draw('key down',Fade) 5866 else: 5867 pass #TODO sequential result movie here 5867 else: #TODO sequential result movie here 5868 SeqId = G2gd.GetGPXtreeItemId(G2frame, G2frame.root, 'Sequential results') 5869 if SeqId: 5870 Seqdata = G2frame.GPXtree.GetItemPyData(SeqId) 5871 histNames = [seqKey for seqKey in Seqdata.keys() if 'PWDR' in seqKey] 5872 histNames.sort() 5873 if key == '0': 5874 G2frame.seq = 0 5875 elif key in ['=','+']: 5876 G2frame.seq += 1 5877 elif key in ['-','_']: 5878 G2frame.seq -= 1 5879 G2frame.seq %= len(histNames) #makes loop 5880 G2frame.G2plotNB.status.SetStatusText('Seq. data file: %s'%(histNames[G2frame.seq]),1) 5881 5882 5883 5884 SetDrawAtomsText(data['Drawing']['Atoms']) 5885 G2phG.FindBondsDraw(data) #rebuild bonds & polygons 5886 Draw('key down') 5887 else: 5888 pass 5868 5889 5869 5890 def GetTruePosition(xy,Add=False): -
TabularUnified trunk/GSASIIpwdGUI.py ¶
r3096 r3101 878 878 # G2frame.dataWindow.Bind(wg.EVT_GRID_CELL_LEFT_DCLICK, onCellListDClick) 879 879 reflGrid.AutoSizeColumns(False) 880 reflGrid.SetScrollRate(1 ,1)880 reflGrid.SetScrollRate(10,10) 881 881 G2frame.reflGrid = reflGrid 882 882 mainSizer.Add(reflGrid,1,wx.ALL|wx.EXPAND,1) … … 2608 2608 G2frame.indxPeaks = G2G.GSGrid(parent=G2frame.dataWindow) 2609 2609 G2frame.indxPeaks.SetTable(G2frame.IndexPeaksTable, True) 2610 G2frame.indxPeaks.SetScrollRate(1 ,1)2610 G2frame.indxPeaks.SetScrollRate(10,10) 2611 2611 XY = [] 2612 2612 Sigs = [] … … 3570 3570 G2frame.refTable[phase] = G2G.GSGrid(parent=G2frame.refBook) 3571 3571 G2frame.refBook.AddPage(G2frame.refTable[phase],phase) 3572 G2frame.refTable[phase].SetScrollRate(1 ,1) # reflection grids (inside tab) need scroll bars3572 G2frame.refTable[phase].SetScrollRate(10,10) # reflection grids (inside tab) need scroll bars 3573 3573 elif len(data[phase]): #else dict for PWDR 3574 3574 G2frame.refTable[phase] = G2G.GSGrid(parent=G2frame.refBook) 3575 3575 G2frame.refBook.AddPage(G2frame.refTable[phase],phase) 3576 G2frame.refTable[phase].SetScrollRate(1 ,1) # as above3576 G2frame.refTable[phase].SetScrollRate(10,10) # as above 3577 3577 else: #cleanup deleted phase reflection lists 3578 3578 del data[phase] -
TabularUnified trunk/exports/G2export_CIF.py ¶
r3027 r3101 361 361 histOnly: used to export only one histogram 362 362 IncludeOnlyHist: used for a full CIF that includes only one of the 363 histograms (from a sequential fit) TODO: needs lots of work!363 histograms (from a sequential fit) #TODO: needs lots of work! 364 364 ''' 365 365
Note: See TracChangeset
for help on using the changeset viewer.