How to add a new tab and new button

and when click the button, trigger the command that we created using Python. Any example files. Thanks a lot!

Hit the gear icon on the right side of the tabs interface and you’ll see an option for creating a new button/tab.

Great, thanks a lot, could it be created programmly, or those UI(tab and button) data was saved in a file, so, when we install the plugin onto User’s machine, it will just replace the file, if so, what may be the file name then?

Thanks a lot!

OK, I found the file appData->default.rui, Thanks again and have a great day!

Perhaps this might be helpful:
https://wiki.mcneel.com/rhino/macroscriptsetup