def _get_body(self):
if self.dont_show_value is None:
return self._message
else:
pnl = BoxLayout(orientation='vertical')
pnl.add_widget(self._message)
pnl_cbx = BoxLayout(
size_hint_y=None, height=metrics.dp(35), spacing=5)
cbx = CheckBox(
active=self.dont_show_value, size_hint_x=None,
width=metrics.dp(50))
cbx.bind(active=self.setter('dont_show_value'))
pnl_cbx.add_widget(cbx)
pnl_cbx.add_widget(
Factory.XLabel(text=self.dont_show_text, halign='left'))
pnl.add_widget(pnl_cbx)
return pnl
评论列表
文章目录