docstr: Validate range text inputs. Return current value(s) if invalid.
docstr_tok: ["Validate","range","text","inputs",".","Return","current","value","(","s",")","if","invalid","."]
code: def _validateRangeText(self, axis):
      """Validate range text inputs. Return current value(s) if invalid."""
      inputs = (
          self.ctrl[axis].minText.text(),
          self.ctrl[axis].maxText.text(),
      )
      vals = self.view().viewRange()[axis]
      for i, text in enumerate(inputs):
          try:
              vals[i] = float(text)
          except ValueError:
              # could not convert string to float
              pass
      return vals
  
imports: from ...Qt import QtCore, QtGui, QtWidgets
  from ...WidgetGroup import WidgetGroup
  from .None import axisCtrlTemplate_generic
  import weakref
  from .ViewBox import ViewBox
label_desc: Use image node_id 26 for calling the ViewBoxMenu obj's underlying member method code with example usage: obj._validateRangeText(axis) and returns: vals