screens.py 文件源码

python
阅读 28 收藏 0 点赞 0 评论 0

项目:ninety_per_ten 作者: arruda 项目源码 文件源码
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
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号