Small suggestion, not sure if this list is where to mention it.
For wxTimeCtrl, this is the current GetValue() function:
GetValue(as_wxDateTime = False, as_mxDateTime = False,
as_wxTimeSpan=False, as mxDateTimeDelta=False)
Retrieves the value of the time from the control. By default this is
returned as a string, unless one of the other arguments is set; args
are searched in the order listed; only one value will be returned.
I thought it would be nice to have a flag for a regular
Python datetime, too.
Small suggestion, not sure if this list is where to mention it.
For wxTimeCtrl, this is the current GetValue() function:
GetValue(as_wxDateTime = False, as_mxDateTime = False,
as_wxTimeSpan=False, as mxDateTimeDelta=False)
Retrieves the value of the time from the control. By default this is
returned as a string, unless one of the other arguments is set; args
are searched in the order listed; only one value will be returned.
I thought it would be nice to have a flag for a regular
Python datetime, too.
Submit a patch.
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!
Small suggestion, not sure if this list is where to mention it.
For wxTimeCtrl, this is the current GetValue() function:
GetValue(as_wxDateTime = False, as_mxDateTime = False,
as_wxTimeSpan=False, as mxDateTimeDelta=False)
Retrieves the value of the time from the control. By default this is
returned as a string, unless one of the other arguments is set; args
are searched in the order listed; only one value will be returned.
I thought it would be nice to have a flag for a regular
Python datetime, too.
Submit a patch.
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!
I have never submitted a patch before and have really no idea how to
do it, but would like to at least to try. I just read the
"HowToSubmitPatches" page here: http://trac.wxwidgets.org/wiki/HowToSubmitPatches
but have a few questions.
- For widgets that are in the lib subfolder of wxPython, are these
things that are only submitted as a patch for wxPython? This TimeCtrl
is in the subfolder wx.lib.masked, and it is written in Python, and
doesn't appear to be in the wxWidgets API, so I am assuming I submit
the patch against a development version of wxPython only?
I have never submitted a patch before and have really no idea how to
do it, but would like to at least to try. I just read the
"HowToSubmitPatches" page here: wxTrac has been migrated to GitHub Issues - wxWidgets
but have a few questions.
- For widgets that are in the lib subfolder of wxPython, are these
things that are only submitted as a patch for wxPython? This TimeCtrl
is in the subfolder wx.lib.masked, and it is written in Python, and
doesn't appear to be in the wxWidgets API, so I am assuming I submit
the patch against a development version of wxPython only?
Yes, you only need to do the patch relative to the wxPython folder, and not worry about wxWidgets.