def add_year(self, year_number):
# Create a new grid for the year
year_grid = yearGrid(year_number)
# Update map of years
self.year_map[year_number] = year_grid
label_box = Gtk.EventBox()
label_box.connect('button-press-event', self.year_clicked)
label = Gtk.Label(self.nth[year_number] + " Year")
label_box.add(label)
left_separator = Gtk.Separator(orientation=Gtk.Orientation.VERTICAL)
left_separator.set_margin_start(1)
left_separator.set_margin_end(10)
self.attach(left_separator, self.new_column(), 0, 1, 3)
self.attach(year_grid, self.new_column(), 2, 1, 1)
self.attach(label_box, self.width, 0, 1, 1)
right_separator = Gtk.Separator(orientation=Gtk.Orientation.VERTICAL)
right_separator.set_margin_start(10)
right_separator.set_margin_end(1)
self.attach(right_separator, self.new_column(), 0, 1, 3)
评论列表
文章目录