<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
I suspect I'm in need of setattr for this in a GUI program I'm
modifying.<br>
<br>
Initally, a variable. self.stop_time is created as type datetime.time,
with the default value 06:00:00, a time stamp, during entry into the
mainloop. self.stop_time = datetime.time(10,10,10). The user reads his
configuration file with the time stamp value of 08:00:00.
self.time_stop becomes type string. He then goes to a dialog to change
time stop, and it tries to access self.time_stop, and find is needs to
have the attribute strftime, as in:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; set_loc_dict[ "stop_time" ] =
self.stop_time.strftime("%H:%M:%S")<br>
<img src="cid:part1.09020000.06080004@sbcglobal.net" alt=""><br>
<br>
When reading the configuration file, how do I make sure that
self.time_stop is really has the strftime attribute?<br>
<br>
<div class="moz-signature">-- <br>
<meta content="text/html;" http-equiv="Content-Type">
<title>Signature.html</title>
<pre class="moz-signature" cols="76">           Wayne Watson (Watson Adventures, Prop., Nevada City, CA)

             (121.01 Deg. W, 39.26 Deg. N) GMT-8 hr std. time)
<font color="#330099">            </font>
<span style="font-weight: bold;">            <span
 style="color: rgb(255, 153, 255);">Shhhh, quiet. I'm thinking about filling this space.</span></span><b><b
 style="color: rgb(204, 51, 204);" class="b"><span
 style="color: rgb(255, 153, 255);"> </span><span
 style="font-family: monospace;"></span></b></b>

</pre>
<div style="margin-left: 40px;">
<b><b style="color: rgb(204, 51, 204);" class="b"><span
 style="font-family: monospace;"></span></b></b></div>
<pre class="moz-signature" cols="76"><b><b
 style="color: rgb(204, 51, 204);" class="b"><span
 style="font-family: monospace; color: rgb(153, 51, 153);"></span></b></b><b
 style="color: rgb(204, 51, 204);" class="b"><span
 style="font-family: monospace; color: rgb(153, 51, 153);"></span></b><span
 style="color: rgb(153, 51, 153);"></span><span
 style="color: rgb(153, 51, 153);">
</span><span style="color: rgb(153, 51, 153);"></span><b
 style="color: rgb(204, 51, 204);" class="b"><span
 style="font-family: monospace;"></span></b><span
 style="color: rgb(204, 51, 204);"></span>                    Web Page: &lt;<a class="moz-txt-link-abbreviated" href="http://www.speckledwithstars.net/">www.speckledwithstars.net/</a>&gt;</pre>
</div>
</body>
</html>