issues with wx.lib.masked.TimeCtrl

I noticed a bit of odd behaviour when upgrading to wxPython 3.0.1.1 with the wx.lib.masked.TimeCtrl control.

Namely 3 things,

  • Using colon / tab to change the selection did weird things - to recreate type ‘11:’ in the timectrl name == ‘main’ demo then begin typing again (1 for example).
  • Clicking or moving the cursor to a different field, then incrementing with the spin control or arrow keys increments where the cursor used to be, not where it currently is.
  • 24hr format was always being used for me, despite passing False to the constructor.

I took a look at the issues and created patches for the 3 bugs and submitted a ticket on wxwidgets here: http://trac.wxwidgets.org/ticket/16578

Hope the changes are ok :slight_smile:

Paul