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")
评论列表
文章目录