title: enable or disable a field in maya ui with python
body: <p>I am trying to enable/disable a float field in the ui of a python script for maya, but I dont know how it is done. Here is an example:</p>
  
  <pre><code>import maya.cmds as cmds
  
  def createUI(windowTitle):
  
      windowID = 'myWindoWID'
  
      if cmds.window(windowID, exists = True):
          cmds.deleteUI(windowID)
  
      cmds.window( windowID, title = windowTitle, sizeable = False, resizeToFitChildren = True) 
  
      cmds.rowColumnLayout(numberOfColumns = 3, columnWidth = [(1,120), (2,120), (3,120)])
  
      cmds.floatField(enable = False)
      cmds.button(label = 'enable the float field', command = enableFloatField)
      cmds.button(label = 'disable the float field', command = disableFloatField)        
  
      cmds.showWindow()
  
  def enableFloatField(*args):
      #enable the float field
      print 'float field enabled'
  
  
  def disableFloatField(*args):
      #disable the float field
      print 'float field disabled'
  
  
  createUI('my window')
  </code></pre>