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
This commit is contained in:
@@ -296,6 +296,7 @@ class wxTimeCtrl(wxTextCtrl):
|
|||||||
"""
|
"""
|
||||||
_dbg('wxTimeCtrl::OnFocus')
|
_dbg('wxTimeCtrl::OnFocus')
|
||||||
wxCallAfter(self.__FixSelection)
|
wxCallAfter(self.__FixSelection)
|
||||||
|
event.Skip()
|
||||||
|
|
||||||
|
|
||||||
def __FixSelection(self):
|
def __FixSelection(self):
|
||||||
@@ -591,6 +592,7 @@ class wxTimeCtrl(wxTextCtrl):
|
|||||||
|
|
||||||
_dbg(indent=1)
|
_dbg(indent=1)
|
||||||
self.IncrementCell(key, pos)
|
self.IncrementCell(key, pos)
|
||||||
|
self.SetInsertionPoint(pos)
|
||||||
_dbg(indent=0)
|
_dbg(indent=0)
|
||||||
else:
|
else:
|
||||||
if key == WXK_UP: inc = 1
|
if key == WXK_UP: inc = 1
|
||||||
@@ -620,6 +622,7 @@ class wxTimeCtrl(wxTextCtrl):
|
|||||||
_dbg(indent=1)
|
_dbg(indent=1)
|
||||||
_dbg("new digit = \'%s\'" % digit)
|
_dbg("new digit = \'%s\'" % digit)
|
||||||
self.ChangeValue(digit, pos)
|
self.ChangeValue(digit, pos)
|
||||||
|
self.SetInsertionPoint(pos)
|
||||||
_dbg(indent=0)
|
_dbg(indent=0)
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user