Overview

Kivy 2.3, released on January 10, 2024, adds official Python 3.12 support and improves rendering performance.

Main Features

Python 3.12 support

Kivy 2.3 is compatible with Python 3.12 and its new interpreter optimizations, while maintaining Python 3.8+ support.

python
from kivy.app import App
from kivy.uix.label import Label

class HelloApp(App):
    def build(self):
        return Label(
            text='Kivy 2.3 + Python 3.12',
            font_size='24sp',
        )

HelloApp().run()

Rendering improvements

The OpenGL rendering pipeline is optimized to reduce draw calls and improve framerate on mobile.

python
from kivy.app import App
from kivy.uix.widget import Widget
from kivy.graphics import Rectangle, Color

class CanvasApp(App):
    def build(self):
        w = Widget()
        with w.canvas:
            Color(0.2, 0.6, 1.0)
            Rectangle(pos=(100, 100), size=(200, 150))
        return w

CanvasApp().run()

Sources