code: def setMaximum(self, m, update=True):
          
          if m is not None:
              m = D(asUnicode(m))
          self.opts['bounds'][1] = m
          if update:
              self.setValue()
docs: Set the maximum allowed value (or None for no limit)