[wxPython-users] Can we bind SpinButton with a masked.TextCtrl
Robin Dunn
robin at alldunn.com
Mon Aug 21 09:28:10 PDT 2006
Pierre Rouleau wrote:
> Hi all,
>
> Is there an easy way to bind a SpinButton to a + that is setup to
> accepts digits only? I.e with a mask similar to '####'. masked.TextCtrl
> does not have a BindSpinButton method (most probably it would'nt make
> sense in lots of cases, but it would for simple numbers).
>
> Has anyone extended masked.TextCtrl to provide that functionality like
> its done for TimeCtrl?
Take a look at the SpinButton sample in the demo. Binding a SpinButton
and a control (of any type) can be as simple as putting them next to
each other and then manipulating the control from the SpinButton's
EVT_SPIN handler.
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
More information about the wxpython-users
mailing list