D. J. Webre, Jr. PE & PLS
"Gabriel
Genellina"
<gagsl-py2@yahoo. To
com.ar python-list@python.org
Sent by: cc
python-list-bounc
es Subject
+djwebre=dotd.l a. Re: Pickle and wx.TextCtrl
gov@python.org
07/11/2008 10:51
PM
Thanks for the response.
En Fri, 11 Jul 2008 10:15:36 -0300, <DWebre@dotd.la .govescribió:
Trying to read a pickled file and list contents.
>
The attached program works using pprint, but I want to write to my frame.
WriteText only produces half of the records.
What is happening?
>
The attached program works using pprint, but I want to write to my frame.
WriteText only produces half of the records.
What is happening?
Write Text list records from "Assignment " to "Report"
pprint list records from "Assignment " to "Report" and continues to
"TaskWeek", about twice as many records
Probably your problem has nothing to do with a TextCtrl - ensure you can
save and load your data with a simple, console-based script, and only then
write the GUI.
The way you read the file is rather strange -mixing calls to readline and
pickle.load- I'd write the data using pickle.dump calls *only* and then
read it using pickle.load calls *only*.
I used 13.1.7 Example of the Python Library Referencebut. Got an error
message when I did not have the readline() statement.
Additional ideas will be appreciated.
--
Gabriel Genellina
--