def _build_evaluation_box(self):
evaluation_box = BoxLayout(orientation='horizontal')
positive_button = Button(
text="Positive",
font_size=50,
size_hint=(.5, .5),
background_normal='',
background_color=rgb_to_kivy(0, 102, 0, 1)
)
positive_button.bind(on_release=self.handle_positive_button)
negative_button = Button(
text="Negative",
font_size=50,
size_hint=(.5, .5),
background_normal='',
background_color=rgb_to_kivy(255, 0, 0, 1)
)
negative_button.bind(on_release=self.handle_negative_button)
evaluation_box.add_widget(positive_button)
evaluation_box.add_widget(negative_button)
return evaluation_box
评论列表
文章目录