class_docstr: Color-specialized QLineEdit layout
class_docstr_tok: ["Color-specialized","QLineEdit","layout"]
code: def __init__(self, color, parent=None):
      QtWidgets.QHBoxLayout.__init__(self)
      assert isinstance(color, QtGui.QColor)
      self.lineedit = QtWidgets.QLineEdit(
          mcolors.to_hex(color.getRgbF(), keep_alpha=True), parent
      )
      self.lineedit.editingFinished.connect(self.update_color)
      self.addWidget(self.lineedit)
      self.colorbtn = ColorButton(parent)
      self.colorbtn.color = color
      self.colorbtn.colorChanged.connect(self.update_text)
      self.addWidget(self.colorbtn)
  
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 1 to create a new ColorLayout object from inherited base classes: QtWidgets with example: obj = ColorLayout(color, parent)