Changeset 4909
- Timestamp:
- May 19, 2021 9:32:00 PM (3 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIctrlGUI.py
r4899 r4909 1462 1462 if sizevals[i]: kargs['size']=sizevals[i] 1463 1463 if CopyButton: 1464 import wx.lib.colourselect as wscs # is there a way to test? 1465 but = wscs.ColourSelect(label='v', # would like to use u'\u2193' or u'\u25BC' but not in WinXP 1466 parent=panel,colour=(255,255,200),size=wx.Size(30,23), 1467 style=wx.RAISED_BORDER) 1468 but.Bind(wx.EVT_BUTTON, self._OnCopyButton) 1469 if 'phoenix' in wx.version(): 1470 but.SetToolTip('Press to copy adjacent value to all rows below') 1464 if i+1 == len(dictlst): 1465 but = (-1,-1) 1471 1466 else: 1472 but.SetToolTipString('Press to copy adjacent value to all rows below') 1473 self.ButtonIndex[but] = i 1467 import wx.lib.colourselect as wscs # is there a way to test? 1468 but = wscs.ColourSelect(label='v', # would like to use u'\u2193' or u'\u25BC' but not in WinXP 1469 parent=panel,colour=(255,255,200),size=wx.Size(30,23), 1470 style=wx.RAISED_BORDER) 1471 but.Bind(wx.EVT_BUTTON, self._OnCopyButton) 1472 if 'phoenix' in wx.version(): 1473 but.SetToolTip('Press to copy adjacent value to all rows below') 1474 else: 1475 but.SetToolTipString('Press to copy adjacent value to all rows below') 1476 self.ButtonIndex[but] = i 1474 1477 subSizer.Add(but) 1475 1478 # create the validated TextCrtl, store it and add it to the sizer -
trunk/exports/G2export_CIF.py
r4888 r4909 1312 1312 pass 1313 1313 WriteCIFitem(self.fp,"_cell_measurement_temperature",T) 1314 for h in phasedict['Histograms']:1314 for h in self.Histograms: 1315 1315 if self.Histograms[h]['ranId'] == hRanId: 1316 1316 pId = phasedict['pId'] … … 1737 1737 s = "" 1738 1738 elif zero: 1739 s = PutInCol(G2mth.ValEsd(x .data-zero,-0.00009),10)1739 s = PutInCol(G2mth.ValEsd(x-zero,-0.00009),10) 1740 1740 else: 1741 s = PutInCol(G2mth.ValEsd(x .data,-0.00009),10)1741 s = PutInCol(G2mth.ValEsd(x,-0.00009),10) 1742 1742 s += PutInCol(Yfmt(ndec,yobs),12) 1743 1743 s += PutInCol(Yfmt(ndec,ycalc),12) … … 2193 2193 self.CIFname = s 2194 2194 2195 self.InitExport(event)2196 # load all of the tree into a set of dicts2197 self.loadTree()2198 # load saved CIF author name2199 self.author = self.OverallParms['Controls'].get("Author",'?').strip()2200 # initialize dict for Selection of Hist for unit cell reporting2201 self.OverallParms['Controls']['CellHistSelection'] = self.OverallParms[2202 'Controls'].get('CellHistSelection',{})2203 self.CellHistSelection = self.OverallParms['Controls']['CellHistSelection']2204 2195 #================================================================= 2205 2196 # write quick CIFs … … 2236 2227 # the export process for a full CIF starts here 2237 2228 #=============================================================================== 2229 # load saved CIF author name 2230 self.author = self.OverallParms['Controls'].get("Author",'?').strip() 2231 # initialize dict for Selection of Hist for unit cell reporting 2232 self.OverallParms['Controls']['CellHistSelection'] = self.OverallParms[ 2233 'Controls'].get('CellHistSelection',{}) 2234 self.CellHistSelection = self.OverallParms['Controls']['CellHistSelection'] 2238 2235 # create a dict with refined values and their uncertainties 2239 2236 self.loadParmDict() … … 2607 2604 2608 2605 def Exporter(self,event=None): 2606 self.InitExport(event) 2607 # load all of the tree into a set of dicts 2608 self.loadTree() 2609 2609 self._Exporter(event=event) 2610 2610 self.CloseFile()
Note: See TracChangeset
for help on using the changeset viewer.