from tkcrystal.tkcif import tkCIF
from tkcrystal.tkcrystal import tkCrystal
infile = 'NaCl.cif'
cif = tkCIF()
cifdata = cif.ReadCIF(infile)
cif.Close()
cifdata.Print()
outfile = 'a.cif'
cifdata.WriteSimpleCIFFile(outfile)
cry = cifdata.GetCrystal()
cry.PrintInf()
cifdata.CreateCIFFileFromCCrystal(cry, outfile)