Can anyone share the python code which runs automatically, when you click the python-part image in the palette instead of opening the UI palette!

Thanks in advance!
Primoz