def _reflow(self):
        """ Reflow the layout. """


        # Create a bit of html for each tool.
        parts = []
        for param in self.tools:
            parts.append(PART % (str(param[0]), self.button_size))

        # Create the entire html page.
        html = HTML % ''.join(parts)

        # Set the HTML on the widget.  This will create all of the buttons.
        self.control.SetPage(html)

        for param in self.tools:
            self._initialize_tool(param)

        return
dataset/ETHPy150Open enthought/pyface/pyface/ui/wx/action/tool_palette.py/ToolPalette._reflow/original