alc@PublicPropertySoftware.com writes:
The current (2.4.0.7) implementation of wxTimeCtrl is a little
surprising in its operation, perhaps too much so to include it
in an end-user type of application. I understand that this is
likely to be much improved in future wxPython versions. No
problem. Before I try to implement a temporary substitute
myself, anyon have pointers to any reasonable stand-ins already
available for collecting time-of-day input in a wxPython app?
Because of similar complaints in the recent past, I (its original
author) have completely replaced the implementation of wxTimeCtrl
in CVS for the next wxPython release (as yet unscheduled, as far
as I know.) It is now based on the wxMaskedTextCtrl Jeff Childers
and I wrote, and behaves in a "much more reasonable way."
It also allows you to use wxDateTime and mxDateTime objects now
to get and set values, allows for min and max bounds, data
transfer via validators, etc. (I rewrote it based on comments
from Roger Binns -- see archive for discussion.)
To use, you will need the following files from the CVS archive:
tools/dbg.py
lib/maskededit.py
lib/timectrl.py
And if you want to see the demo code to see if it is now
acceptable, update:
lib/scrolledpanel.py
demo/wxTimeCtrl.py
If this still doesn't meet your needs, I would like to know the
specifics of why, as my intent was and still is to provide
a usable control.
Regards,
/Will Sadkin
Parlance Corporation
www.nameconnector.com