UI Creation

Any body has a script to atach buttons to a window in an easier way, a graphic way?