(self)
Ensure initialcolor is a tk color string.

        Convert initialcolor from a RGB triplet to a color string.
Ensure initialcolor is a tk color string.
Ensure initialcolor is a tk color string .
def _fixoptions(self):
        """Ensure initialcolor is a tk color string.

        Convert initialcolor from a RGB triplet to a color string.
        """
        try:
            color = self.options["initialcolor"]
            if isinstance(color, tuple):
                # Assume an RGB triplet.
                self.options["initialcolor"] = "#%02x%02x%02x" % color
        except KeyError:
            pass
def _fixoptions ( self ) : try : color = self . options [ "initialcolor" ] if isinstance ( color , tuple ) : # Assume an RGB triplet. self . options [ "initialcolor" ] = "#%02x%02x%02x" % color except KeyError : pass