By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
439,942 Members | 1,788 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 439,942 IT Pros & Developers. It's quick & easy.

How can i set a DateTimePicker to read only?

bona25
P: 4
Hello,

I'm currently insdto Turbogears 2 (Tosca) and finding it hard to set date-time entry to read only. I've used "disabled=True" but info is unable to save to database, then i tried "readonly=readonly" but still doesn't work. Please help.

Here's what i've got at the moment (ToscaSample/widgets):

CalendarDateTimePicker('Time_In', date_format ="%m/%d/%Y %I:%M:%S %p",
disabled=True,
label_text='Time_In:',
validator=NotEmpty,

Thank you!
Oct 24 '11 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.