Koray's post in How to add buttons was marked as the answer
March 15, 2015
First, you create any image for background
Create your board base with background
self.backg = ui.ImageBox()
self.backg.LoadImage("BoardBackGround.tga") #your background image name
self.backg.SetPosition(x, y)#change by yourself
self.backg.Show()
Add button in your imagebox(image board)
self.backg_button = ui.Button()
self.backg_button.SetParent(self.backg) #your image board parent
self.backg_button.SetPosition(x,y) #Change by yourself
self.backg_button.SetUpVisual('d:/ymir work/ui/public/close_button_01.sub') #"""
self.backg_button.SetOverVisual('d:/ymir work/ui/public/close_button_02.sub') #Change by yourself
self.backg_button.SetDownVisual('d:/ymir work/ui/public/close_button_03.sub') #"""
self.backg_button.SetEvent(ui.__mem_func__(self.__ButtonFuncInHere))
self.backg_button.Show()
Create your button function
def __ButtonFuncInHere(self):
#Func in here