X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d4b73b1b8e585418459362c9bf9173aa21da8c41..b887061dd1d7b3a49a111513309b1bb5c308537c:/wxPython/wx/lib/maskednumctrl.py?ds=sidebyside diff --git a/wxPython/wx/lib/maskednumctrl.py b/wxPython/wx/lib/maskednumctrl.py index 138a88adbe..9a3d234793 100644 --- a/wxPython/wx/lib/maskednumctrl.py +++ b/wxPython/wx/lib/maskednumctrl.py @@ -4,7 +4,7 @@ # Created: 09/06/2003 # Copyright: (c) 2003 by Will Sadkin # RCS-ID: $Id$ -# License: wxWindows license +# License: wxWidgets license #---------------------------------------------------------------------------- # NOTE: # This was written to provide a numeric edit control for wxPython that @@ -29,7 +29,7 @@ # are exceeded. # # MaskedNumCtrl is intended to support fixed-point numeric entry, and -# is derived from MaskedTextCtrl. As such, it supports a limited range +# is derived from BaseMaskedTextCtrl. As such, it supports a limited range # of values to comply with a fixed-width entry mask. #---------------------------------------------------------------------------- # 12/09/2003 - Jeff Grimmett (grimmtooth@softhome.net) @@ -65,10 +65,10 @@ Here's the API: MaskedNumCtrl( parent, id = -1, value = 0, - pos = wxDefaultPosition, - size = wxDefaultSize, + pos = wx.DefaultPosition, + size = wx.DefaultSize, style = 0, - validator = wxDefaultValidator, + validator = wx.DefaultValidator, name = "maskednumber", integerWidth = 10, fractionWidth = 0, @@ -87,6 +87,7 @@ Here's the API: emptyBackgroundColour = "White", validBackgroundColour = "White", invalidBackgroundColour = "Yellow", + autoSize = True )