def create_custom_button(self, tup):
"""Create custom button based on config.FORM_BUTTONS tuple"""
button = Button(description=tup[0])
def function(b):
for key, value in tup[1].items():
getattr(self, key).value = value
self.show(clear=True)
button.on_click(function)
return button
评论列表
文章目录