From: Schollnick, B. <Ben...@xe...> - 2005-07-18 17:30:11
|
Okay, I found a different way to handle changing the date in the calendar control. date =3D time.strptime ( data[0][3], "%a %b %d %H:%M:%S %Y") import datetime datevalue =3D datetime.datetime ( date[0], date[1], date[2] ) dlg.components.TimeDateStampfield.date =3D datevalue While this obvious... I initially did not get this to work. I forget exactly what was previously tried... But I believe I initially tried to pass the date string... SetDate is a red heering.... It's wxPython.... And I have not found any way to use it.... ( wxDateTime isn't anywhere to be found on my wxPython installation...) - Benjamin > -----Original Message----- > From: pyt...@li...=20 > [mailto:pyt...@li...] On=20 > Behalf Of Schollnick, Benjamin > Sent: Monday, July 18, 2005 12:08 PM > To: pyt...@li... > Subject: [Pythoncard-users] Calendar Widget, setting the date=20 > shown to a specific date. >=20 >=20 > Folks, >=20 > I'm using a calendar widget.... But I have run into a=20 > issue that I can't seem > to resolve... >=20 > Is there a way to set the Calendar widget to a specific=20 > date? I see the > SetDate function, but I am unable to find the=20 > syntax/format for that function... >=20 > I need to set the calendar to match the data it is=20 > representing.... >=20 > I briefly checked the samples, but I did not see any=20 > that used the calendar, and > set the date to anything but the default of Now... (The=20 > calendar widget appears > to default to NOW().)=20 >=20 > Any hints? >=20 > - Benjamin >=20 >=20 > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux Migration=20 > Strategies from IBM. Find simple to follow Roadmaps,=20 > straightforward articles, informative Webcasts and more! Get=20 > everything you need to get up to speed, fast.=20 > http://ads.osdn.com/?ad_idt77&alloc_id=16492&op=3Dick > _______________________________________________ > Pythoncard-users mailing list Pyt...@li... > https://lists.sourceforge.net/lists/listinfo/pythoncard-users >=20 |