<html><body>
<p>D. J. Webre, Jr. PE & PLS<br>
<br>
<img width="16" height="16" src="cid:1__=09BBFE1ADFD627EA8f9e8@dotd.louisiana.gov" border="0" alt="Inactive hide details for "Gabriel Genellina" <gagsl-py2@yahoo.com.ar>">"Gabriel Genellina" <gagsl-py2@yahoo.com.ar><br>
<br>
<br>

<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr valign="top"><td style="background-image:url(cid:2__=09BBFE1ADFD627EA8f9e8@dotd.louisiana.gov); background-repeat: no-repeat; " width="40%">
<ul>
<ul>
<ul>
<ul><b><font size="2">"Gabriel Genellina" <gagsl-py2@yahoo.com.ar></font></b><font size="2"> </font><br>
<font size="2">Sent by: python-list-bounces+djwebre=dotd.la.gov@python.org</font>
<p><font size="2">07/11/2008 10:51 PM</font></ul>
</ul>
</ul>
</ul>
</td><td width="60%">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr valign="top"><td width="1%"><img width="58" height="1" src="cid:3__=09BBFE1ADFD627EA8f9e8@dotd.louisiana.gov" border="0" alt=""><br>
<div align="right"><font size="2">To</font></div></td><td width="100%"><img width="1" height="1" src="cid:3__=09BBFE1ADFD627EA8f9e8@dotd.louisiana.gov" border="0" alt=""><br>
<font size="2">python-list@python.org</font></td></tr>

<tr valign="top"><td width="1%"><img width="58" height="1" src="cid:3__=09BBFE1ADFD627EA8f9e8@dotd.louisiana.gov" border="0" alt=""><br>
<div align="right"><font size="2">cc</font></div></td><td width="100%"><img width="1" height="1" src="cid:3__=09BBFE1ADFD627EA8f9e8@dotd.louisiana.gov" border="0" alt=""><br>
</td></tr>

<tr valign="top"><td width="1%"><img width="58" height="1" src="cid:3__=09BBFE1ADFD627EA8f9e8@dotd.louisiana.gov" border="0" alt=""><br>
<div align="right"><font size="2">Subject</font></div></td><td width="100%"><img width="1" height="1" src="cid:3__=09BBFE1ADFD627EA8f9e8@dotd.louisiana.gov" border="0" alt=""><br>
<font size="2">Re: Pickle and wx.TextCtrl</font></td></tr>
</table>

<table border="0" cellspacing="0" cellpadding="0">
<tr valign="top"><td width="58"><img width="1" height="1" src="cid:3__=09BBFE1ADFD627EA8f9e8@dotd.louisiana.gov" border="0" alt=""></td><td width="336"><img width="1" height="1" src="cid:3__=09BBFE1ADFD627EA8f9e8@dotd.louisiana.gov" border="0" alt=""></td></tr>
</table>
</td></tr>
</table>
<font color="#0000FF">Thanks for the response.</font><br>
<br>
<tt>En Fri, 11 Jul 2008 10:15:36 -0300, <DWebre@dotd.la.gov> escribió:<br>
</tt><br>
<tt>> Trying to read a pickled file and list contents.<br>
><br>
> The attached program works using pprint, but I want to write to my frame.<br>
> WriteText only produces half of the records.<br>
> What is happening?<br>
</tt><br>
<tt>What do you mean by "only produces half of the records"?</tt><br>
<br>
<tt><font color="#0000FF">Write Text list records from "Assignment" to "Report"</font></tt><br>
<tt><font color="#0000FF">pprint list records from "Assignment" to "Report" and continues to "TaskWeek", about twice as many records</font></tt><br>
<tt><br>
Probably your problem has nothing to do with a TextCtrl - ensure you can<br>
save and load your data with a simple, console-based script, and only then<br>
write the GUI.<br>
The way you read the file is rather strange -mixing calls to readline and<br>
pickle.load- I'd write the data using pickle.dump calls *only* and then<br>
read it using pickle.load calls *only*.</tt><br>
<br>
<tt><font color="#0000FF">I used 13.1.7 Example of the Python Library Referencebut.  Got an error message when I did not have the readline() statement. <br>
</font></tt><br>
<tt><font color="#0000FF">Additional ideas will be appreciated.</font></tt><br>
<tt>--<br>
Gabriel Genellina<br>
</tt><br>
<tt>--<br>
</tt><tt><a href="http://mail.python.org/mailman/listinfo/python-list">http://mail.python.org/mailman/listinfo/python-list</a></tt><br>
<br>
</body></html>