class_docstr: Form Dialog
class_docstr_tok: ["Form","Dialog"]
code: def update_buttons(self):
      valid = True
      for field in self.float_fields:
          if not is_edit_valid(field):
              valid = False
      for btn_type in (
          QtWidgets.QDialogButtonBox.Ok,
          QtWidgets.QDialogButtonBox.Apply,
      ):
          btn = self.bbox.button(btn_type)
          if btn is not None:
              btn.setEnabled(valid)
  
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import copy
  import datetime
  import warnings
  import six
  from matplotlib import colors
  from matplotlib.backends.qt_compat import QtGui, QtWidgets, QtCore
label_desc: Use image node_id 3 for calling the FormDialog obj's underlying member method code with example usage: obj.update_buttons() without return types