Hello!
I want to use several buttons in the script, each will run its own
algorithm. How can I distinguish between them? You can sample.
Use python !!!
def button_creat(self,color=(1,0,0),txt_title="Clear interface ",pos_x=100,pos_y=100,name_obj="id_button"):
self.name_obj = name_obj
self.button = self.panel.add_button(txt_title)
self.button.rect_transform.position = (pos_x,pos_y)
self.name_obj = self.conn.add_stream(getattr,self.button,"clicked")