From 33ed3832afcdd919fdeb5b1ea6b117c2bbff173c Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Tue, 24 Sep 2002 18:09:21 +0000 Subject: [PATCH] Some tweaks for wxTimeCtrl for wxGTK git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17370 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/wxPython/lib/timectrl.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wxPython/wxPython/lib/timectrl.py b/wxPython/wxPython/lib/timectrl.py index d32e17d825..4917f16dac 100644 --- a/wxPython/wxPython/lib/timectrl.py +++ b/wxPython/wxPython/lib/timectrl.py @@ -296,6 +296,7 @@ class wxTimeCtrl(wxTextCtrl): """ _dbg('wxTimeCtrl::OnFocus') wxCallAfter(self.__FixSelection) + event.Skip() def __FixSelection(self): @@ -591,6 +592,7 @@ class wxTimeCtrl(wxTextCtrl): _dbg(indent=1) self.IncrementCell(key, pos) + self.SetInsertionPoint(pos) _dbg(indent=0) else: if key == WXK_UP: inc = 1 @@ -620,6 +622,7 @@ class wxTimeCtrl(wxTextCtrl): _dbg(indent=1) _dbg("new digit = \'%s\'" % digit) self.ChangeValue(digit, pos) + self.SetInsertionPoint(pos) _dbg(indent=0)