Aleksa
Aleksa

Reputation: 3104

Date input field format

I have TextCtrl field in which user should enter the date in format dd.mm.yyyy I wanna force him to do it in that format, so is it possible to have something like this * * . * * . * * * * in text field and when he enters numbers, those numbers replaces *. So he doesnt need to type dots , only numbers.

Upvotes: 0

Views: 254

Answers (1)

Steve Barnes
Steve Barnes

Reputation: 28390

You need to use a Masked Edit Control see the wxPython demo for a number of examples.

Upvotes: 1

Related Questions