def METHOD_NAME(self, setting):
    '''add a spin control'''
    tab = self.panel(setting.tab)
    default = setting.value
    (minv, maxv) = setting.range
    ctrl = wx.SpinCtrl(tab, -1,
                       initial = default,
                       min = minv,
                       max = maxv)
    self._add_input(setting, ctrl, value=default)