def do_expose_event(self, event): Popup.do_expose_event(self, event) if self.__can_focus and not self.focused and self.__vscrolled: layout = self.__create_f2_layout() width, height = layout.get_pixel_size() cr = event.window.cairo_create() cr.set_source_rgb(0., 0., 0.) cr.rectangle(0, self.allocation.height - height, self.allocation.width, 1) cr.fill() cr.move_to(self.allocation.width - width - 5, self.allocation.height - height) cr.show_layout(layout)
def do_expose_event(self, event): Popup.do_expose_event(self, event) # needed because we can't implement forall, see below self.propagate_expose(self.__scrollbar, event) if self.__can_focus and not self.focused and self.__vscrolled: layout = self.__create_f2_layout() width, height = layout.get_pixel_size() cr = event.window.cairo_create() cr.set_source_rgb(0., 0., 0.) cr.rectangle(0, self.allocation.height - height, self.allocation.width, 1) cr.fill() cr.move_to(self.allocation.width - width - 5, self.allocation.height - height) cr.show_layout(layout)