def draw(self):
        """Process events, draw widgets and update screen."""
        ### draw self.image (background)
        super().draw()

        ### draw lines which appear on editing area and
        ### the cursor
        self.cursor.draw_visible_lines_and_self()

        ### draw buttons
        self.buttons.draw()

        ### draw statusbar
        self.statusbar.draw()

        ### update screen
        SERVICES_NS.update_screen()
Process events, draw widgets and update screen.
nodezator/textman/editor/main.py