def expose_event_cb(self, layout, event): style = self.get_style() gc = style.fg_gc[gtk.STATE_NORMAL] for points in self._vg_lines: self.bin_window.draw_lines(gc, points)