Added new MaskedEditControl code from Will Sadkin. The modules are
now locaed in their own sub-package, wx.lib.masked. Demos updated. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26874 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -2,9 +2,21 @@
|
||||
## backwards compatibility. Some names will also have a 'wx' added on if
|
||||
## that is how they used to be named in the old wxPython package.
|
||||
|
||||
import wx.lib.maskedctrl
|
||||
import wx.lib.masked.ctrl
|
||||
|
||||
__doc__ = wx.lib.maskedctrl.__doc__
|
||||
__doc__ = wx.lib.masked.ctrl.__doc__
|
||||
|
||||
controlTypes = wx.lib.maskedctrl.controlTypes
|
||||
wxMaskedCtrl = wx.lib.maskedctrl.MaskedCtrl
|
||||
MASKEDTEXT = wx.lib.masked.ctrl.TEXT
|
||||
MASKEDCOMBO = wx.lib.masked.ctrl.COMBO
|
||||
IPADDR = wx.lib.masked.ctrl.IPADDR
|
||||
TIME = wx.lib.masked.ctrl.TIME
|
||||
NUMBER = wx.lib.masked.ctrl.NUMBER
|
||||
|
||||
class controlTypes:
|
||||
MASKEDTEXT = wx.lib.masked.ctrl.TEXT
|
||||
MASKEDCOMBO = wx.lib.masked.ctrl.COMBO
|
||||
IPADDR = wx.lib.masked.ctrl.IPADDR
|
||||
TIME = wx.lib.masked.ctrl.TIME
|
||||
NUMBER = wx.lib.masked.ctrl.NUMBER
|
||||
|
||||
wxMaskedCtrl = wx.lib.masked.Ctrl
|
||||
|
@@ -1,16 +1,15 @@
|
||||
## This file imports items from the wx package into the wxPython package for
|
||||
## backwards compatibility. Some names will also have a 'wx' added on if
|
||||
## that is how they used to be named in the old wxPython package.
|
||||
import wx.lib.masked
|
||||
import wx.lib.masked.maskededit
|
||||
|
||||
import wx.lib.maskededit
|
||||
__doc__ = wx.lib.masked.maskededit.__doc__
|
||||
|
||||
__doc__ = wx.lib.maskededit.__doc__
|
||||
from wx.lib.masked.maskededit import *
|
||||
|
||||
Field = wx.lib.maskededit.Field
|
||||
test = wx.lib.maskededit.test
|
||||
test2 = wx.lib.maskededit.test2
|
||||
wxIpAddrCtrl = wx.lib.maskededit.IpAddrCtrl
|
||||
wxMaskedComboBox = wx.lib.maskededit.MaskedComboBox
|
||||
wxMaskedComboBoxSelectEvent = wx.lib.maskededit.MaskedComboBoxSelectEvent
|
||||
wxMaskedEditMixin = wx.lib.maskededit.MaskedEditMixin
|
||||
wxMaskedTextCtrl = wx.lib.maskededit.MaskedTextCtrl
|
||||
wxMaskedEditMixin = wx.lib.masked.MaskedEditMixin
|
||||
wxMaskedTextCtrl = wx.lib.masked.TextCtrl
|
||||
wxMaskedComboBox = wx.lib.masked.ComboBox
|
||||
wxMaskedComboBoxSelectEvent = wx.lib.masked.MaskedComboBoxSelectEvent
|
||||
wxIpAddrCtrl = wx.lib.masked.IpAddrCtrl
|
||||
|
@@ -2,10 +2,10 @@
|
||||
## backwards compatibility. Some names will also have a 'wx' added on if
|
||||
## that is how they used to be named in the old wxPython package.
|
||||
|
||||
import wx.lib.maskednumctrl
|
||||
import wx.lib.masked.numctrl
|
||||
|
||||
__doc__ = wx.lib.maskednumctrl.__doc__
|
||||
__doc__ = wx.lib.masked.numctrl.__doc__
|
||||
|
||||
EVT_MASKEDNUM = wx.lib.maskednumctrl.EVT_MASKEDNUM
|
||||
wxMaskedNumCtrl = wx.lib.maskednumctrl.MaskedNumCtrl
|
||||
wxMaskedNumNumberUpdatedEvent = wx.lib.maskednumctrl.MaskedNumNumberUpdatedEvent
|
||||
EVT_MASKEDNUM = wx.lib.masked.numctrl.EVT_NUM
|
||||
wxMaskedNumCtrl = wx.lib.masked.numctrl.NumCtrl
|
||||
wxMaskedNumNumberUpdatedEvent = wx.lib.masked.numctrl.NumberUpdatedEvent
|
||||
|
@@ -2,10 +2,10 @@
|
||||
## backwards compatibility. Some names will also have a 'wx' added on if
|
||||
## that is how they used to be named in the old wxPython package.
|
||||
|
||||
import wx.lib.timectrl
|
||||
import wx.lib.masked.timectrl
|
||||
|
||||
__doc__ = wx.lib.timectrl.__doc__
|
||||
__doc__ = wx.lib.masked.timectrl.__doc__
|
||||
|
||||
EVT_TIMEUPDATE = wx.lib.timectrl.EVT_TIMEUPDATE
|
||||
TimeUpdatedEvent = wx.lib.timectrl.TimeUpdatedEvent
|
||||
wxTimeCtrl = wx.lib.timectrl.TimeCtrl
|
||||
EVT_TIMEUPDATE = wx.lib.masked.timectrl.EVT_TIMEUPDATE
|
||||
TimeUpdatedEvent = wx.lib.masked.timectrl.TimeUpdatedEvent
|
||||
wxTimeCtrl = wx.lib.masked.timectrl.TimeCtrl
|
||||
|
Reference in New Issue
Block a user