X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8eca4fef106b8327e2e55636de3f68a511a4c392..8a88769e50fcf3c538498f6fecdd2d0c7abca6ec:/wxPython/demo/MaskedNumCtrl.py diff --git a/wxPython/demo/MaskedNumCtrl.py b/wxPython/demo/MaskedNumCtrl.py index 68dbb26687..24f6e15a91 100644 --- a/wxPython/demo/MaskedNumCtrl.py +++ b/wxPython/demo/MaskedNumCtrl.py @@ -4,6 +4,7 @@ import sys import traceback import wx +import wx.lib.maskededit as me import wx.lib.maskednumctrl as mnum #---------------------------------------------------------------------- @@ -31,13 +32,13 @@ The controls at the top reconfigure the resulting control at the bottom. ) groupcharlabel = wx.StaticText( panel,-1, "Grouping char:" ) - self.groupchar = mnum.MaskedTextCtrl( + self.groupchar = me.MaskedTextCtrl( panel, -1, value=',', mask='&', excludeChars = '-()', formatcodes='F', emptyInvalid=True, validRequired=True ) decimalcharlabel = wx.StaticText( panel,-1, "Decimal char:" ) - self.decimalchar = mnum.MaskedTextCtrl( + self.decimalchar = me.MaskedTextCtrl( panel, -1, value='.', mask='&', excludeChars = '-()', formatcodes='F', emptyInvalid=True, validRequired=True )