Overview

Kivy 2.2, released on January 10, 2023, adds Python 3.11 support and improves compatibility with modern platforms.

Main Features

Python 3.11 support

Kivy 2.2 is compatible with Python 3.11, benefiting from performance improvements and new language features.

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

class MyApp(App):
    def build(self):
        return Label(
            text='Kivy 2.2 on Python 3.11',
            font_size='24sp',
        )

MyApp().run()

Cross-platform improvements

Compatibility with macOS Ventura, Windows 11, and the latest Android versions has been improved, with fixes for graphics rendering.

python
from kivy.app import App
from kivy.uix.button import Button
from kivy.utils import platform

class PlatformApp(App):
    def build(self):
        btn = Button(text=f'Platform: {platform}')
        btn.bind(on_press=self.on_click)
        return btn

    def on_click(self, instance):
        instance.text = f'{platform} - Kivy 2.2'

PlatformApp().run()

Sources