Cannot validate date filed correctly in wx.lib.masked TextCtrl

Hai,
i am using Windows 7 and 2.9.5.0 msw (classic)
I cannot use date validation correctly in wx.lib.masked TextCtrl.
I am using DD/MM/YYYY format but wxpython uses the default MM/DD/YYYY format as in wxpython demo.
So every time the field in YELLOW color indicating that date is invalid.
Is there any options that i may have missed ?
Please see the script is attached and thanks for the support i am getting from this forum.

Expecting help in this matter,

Thanks in advance,

Sibu

dtmask.py (1.56 KB)

Hi,

Hai,

i am using Windows 7 and 2.9.5.0 msw (classic)

I cannot use date validation correctly in wx.lib.masked TextCtrl.

I am using DD/MM/YYYY format but wxpython uses the default MM/DD/YYYY format as in wxpython demo.
So every time the field in YELLOW color indicating that date is invalid.

Is there any options that i may have missed ?

It works for me when using autoformat:

         dt1=TextCtrl(panel, value=str(wx.DateTime_Now().Format("%d/%m/%Y")),
                           style= wx.TE_PROCESS_ENTER,
                           autoformat = "EUDATEDDMMYYYY/",
                           validRequired=True,
                           )

See the wxPython demo for MaskedEditControls under the Auto-formatted controls tab.

Werner

···

On 11/17/2014 8:36, Sibu Neelankavil wrote:

Thanks werner for the quick reply.
Its Solved.

Sibu

···

On Monday, 17 November 2014 13:06:41 UTC+5:30, Sibu Neelankavil wrote:

Hai,
i am using Windows 7 and 2.9.5.0 msw (classic)
I cannot use date validation correctly in wx.lib.masked TextCtrl.
I am using DD/MM/YYYY format but wxpython uses the default MM/DD/YYYY format as in wxpython demo.
So every time the field in YELLOW color indicating that date is invalid.
Is there any options that i may have missed ?
Please see the script is attached and thanks for the support i am getting from this forum.

Expecting help in this matter,

Thanks in advance,

Sibu