From 38e529ac51a63b6422b6803d2bf43472a4444fa7 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Thu, 13 Jun 2013 07:17:29 +0000 Subject: [PATCH] intctrl Phoenix Fixes git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@74214 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wx/lib/intctrl.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/wx/lib/intctrl.py b/wx/lib/intctrl.py index 0e34dc36..1c3d88b2 100644 --- a/wx/lib/intctrl.py +++ b/wx/lib/intctrl.py @@ -33,7 +33,7 @@ # # o wxIntUpdateEvent -> IntUpdateEvent # o wxIntValidator -> IntValidator -# o wxIntCtrl -> IntCtrl +# o wxIntCtrl -> IntCtrl # import string @@ -80,13 +80,13 @@ class IntUpdatedEvent(wx.PyCommandEvent): #---------------------------------------------------------------------------- -class IntValidator( wx.PyValidator ): +class IntValidator(wx.Validator): """ Validator class used with IntCtrl; handles all validation of input prior to changing the value of the underlying wx.TextCtrl. """ def __init__(self): - wx.PyValidator.__init__(self) + wx.Validator.__init__(self) self.Bind(wx.EVT_CHAR, self.OnChar) def Clone (self): @@ -328,7 +328,7 @@ class IntValidator( wx.PyValidator ): elif not internally_set: event.Skip() # allow base wxTextCtrl to finish processing - elif not wx.Validator_IsSilent(): + elif not wx.Validator.IsSilent(): wx.Bell() @@ -508,7 +508,7 @@ class IntCtrl(wx.TextCtrl): self.__oldvalue = self.GetValue() # record for next event self._colorValue() - + def SetMin(self, min=None): """ Sets the minimum value of the control. If a value of None