code: def setOpts(self, **opts):
          
          #print opts
          for k in opts:
              if k == 'bounds':
                  #print opts[k]
                  self.setMinimum(opts[k][0], update=False)
                  self.setMaximum(opts[k][1], update=False)
                  #for i in [0,1]:
                      #if opts[k][i] is None:
                          #self.opts[k][i] = None
                      #else:
                          #self.opts[k][i] = D(unicode(opts[k][i]))
              elif k in ['step', 'minStep']:
                  self.opts[k] = D(asUnicode(opts[k]))
              elif k == 'value':
                  pass   ## don't set value until bounds have been set
              else:
                  self.opts[k] = opts[k]
          if 'value' in opts:
              self.setValue(opts['value'])
              
          ## If bounds have changed, update value to match
          if 'bounds' in opts and 'value' not in opts:
              self.setValue()   
              
          ## sanity checks:
          if self.opts['int']:
              if 'step' in opts:
                  step = opts['step']
                  ## not necessary..
                  #if int(step) != step:
                      #raise Exception('Integer SpinBox must have integer step size.')
              else:
                  self.opts['step'] = int(self.opts['step'])
              
              if 'minStep' in opts:
                  step = opts['minStep']
                  if int(step) != step:
                      raise Exception('Integer SpinBox must have integer minStep size.')
              else:
                  ms = int(self.opts.get('minStep', 1))
                  if ms < 1:
                      ms = 1
                  self.opts['minStep'] = ms
          
          if 'delay' in opts:
              self.proxy.setDelay(opts['delay'])
          
          self.updateText()
docs: Changes the behavior of the SpinBox. Accepts most of the arguments 
          allowed in :func:`__init__ <pyqtgraph.SpinBox.__init__>`.