launcher.py 文件源码

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

项目:sc-controller 作者: kozec 项目源码 文件源码
def create_buttons(self):
        self.grid = Gtk.Grid()
        self.parent.pack_start(self.grid, True, True, 0)
        self._buttons = []

        x, y = 0, 0
        for label in self.BUTTONS:
            if label:
                w = self.generate_widget(label)
                w.set_name("osd-key-buton")
                self.grid.attach(w, x, y, 1, 1)
                self._buttons.append(w)
            x += 1
            if x > 2:
                x = 0
                y += 1


        w = self.generate_widget(_("Run"))
        self.grid.attach(w, x, y, 1, 1)


        self.grid.set_name("osd-dialog-buttons")
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号