def add_module_is_deprecated_label(self):
"""
The deprecated module must set a message in self.g_deprecated_label
in on_start_practise, preferable telling the file name of the
lesson file.
"""
img = Gtk.Image()
img.set_from_stock(Gtk.STOCK_DIALOG_WARNING,
Gtk.IconSize.BUTTON)
hbox = Gtk.HBox()
hbox.set_border_width(12)
self.practise_box.set_child_packing(self.g_lesson_heading, False, False, 0, 0)
hbox.set_spacing(6)
hbox.pack_start(img, True, True, 0)
self.g_deprecated_label = Gtk.Label()
hbox.pack_start(self.g_deprecated_label, True, True, 0)
self.practise_box.pack_start(hbox, False, False, 0)
self.practise_box.reorder_child(hbox, 0)
评论列表
文章目录