Title: Signature.html
I suspect I'm in need of setattr for this in a GUI program I'm modifying.

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:
        set_loc_dict[ "stop_time" ] = self.stop_time.strftime("%H:%M:%S")


When reading the configuration file, how do I make sure that self.time_stop is really has the strftime attribute?

--
           Wayne Watson (Watson Adventures, Prop., Nevada City, CA)

             (121.01 Deg. W, 39.26 Deg. N) GMT-8 hr std. time)
            
            Shhhh, quiet. I'm thinking about filling this space. 


                    Web Page: <www.speckledwithstars.net/>
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to