From e36c213dd52b7c94d942601b3cd54c800f348ef6 Mon Sep 17 00:00:00 2001 From: Werner F Bruhin Date: Thu, 26 Jun 2014 11:10:39 +0200 Subject: [PATCH] - fix deprecation warning for m_shiftDown --- wx/lib/masked/timectrl.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wx/lib/masked/timectrl.py b/wx/lib/masked/timectrl.py index 74f9e39c..f2a4c964 100644 --- a/wx/lib/masked/timectrl.py +++ b/wx/lib/masked/timectrl.py @@ -1254,7 +1254,7 @@ class TimeCtrl(BaseMaskedTextCtrl): def __OnChar(self, event): """ Handler to explicitly look for ':' keyevents, and if found, - clear the m_shiftDown field, so it will behave as forward tab. + clear the shiftDown field, so it will behave as forward tab. It then calls the base control's _OnChar routine with the modified event instance. """ @@ -1263,7 +1263,7 @@ class TimeCtrl(BaseMaskedTextCtrl): ## dbg('keycode:', keycode) if keycode == ord(':'): ## dbg('colon seen! removing shift attribute') - event.m_shiftDown = False + event.shiftDown = False BaseMaskedTextCtrl._OnChar(self, event ) ## handle each keypress ## dbg(indent=0)