The user interface configuration file (CustomToolBarConfiguration.xml) defines a user interface operation and calls the Python file pipe.py to enable the button.
<Configuration ShowEditConfiguration="True">
<GuiOperations>
<GuiOperation Name="Custom GUI" Priority="2" ScriptFile="pipe1.py" Image="custom"
Type="ToolbarButton" SourceType="Python"/>
</GuiOperations>
</Configuration>