def _setup_cb(self):
'''set up encapsulated button as checkbox'''
tf=ui.Button()
tf.action=self._button_action
tf.width=self.width
tf.height=self.height
tf.flex='whtblr'
tf.title=self._get_checkbox_char()
self.add_subview(tf)
return tf
评论列表
文章目录