def __init__(self, model, parent):
Gtk.VBox.__init__(self)
self.set_spacing(gu.hig.SPACE_MEDIUM)
self.m_model = model
self.m_parent = parent
assert isinstance(model, pd.Column)
self.g_section_box = Gtk.VBox()
self.g_section_box.set_spacing(gu.hig.SPACE_MEDIUM)
self.pack_start(self.g_section_box, False, False, 0)
for section in model:
assert isinstance(section, pd.LinkList)
gui_section = Section(section, self)
self.g_section_box.pack_start(gui_section, False, False, 0)
hbox = Gtk.HBox()
self.pack_start(hbox, False, False, 0)
b = Gtk.Button(_("Add section"))
hbox.pack_start(b, False, False, 0)
b.connect('clicked', self.on_add_section)
b = Gtk.Button(stock=Gtk.STOCK_PASTE)
b.connect('clicked', self.on_paste)
Editor.clipboard.register_paste_button(b, pd.LinkList)
hbox.pack_start(b, False, False, 0)
评论列表
文章目录