LayerToFront()is a convenience function. The same could be achieved by using SwapLayers() or SetLayerZPos().
If the optional argument
noswap is set to
True, the layer is brought
to the front by simply moving it to the front. This is different from
the default behaviour which simply swaps the positions of the front layer
and the layer specified by
Trueif the layers shouldn't swap positions but the specified layer should just be moved to the front (defaults to