Help with cPickle in Python 2.6 Help with cPickle in Python 2.6 tkinter tkinter

Help with cPickle in Python 2.6


Try switching the order of the arguments:

cPickle.dump(root.config(), f, -1)cPickle.dump(root.sclX.config(), f, -1)

According to the documentation, the file should be the second argument, and the object to be pickled should be the first.


I think you have the parameters in the wrong order. See the docs here. Try below:

cPickle.dump(root.config(), f, -1);cPickle.dump(root.sclX.config(), f, -1);