Python: Expose the Model and ListModel in slint

This commit is contained in:
Simon Hausmann 2024-03-06 16:21:23 +01:00
parent 3e66b98121
commit 14b371beff

View file

@ -4,6 +4,7 @@
from . import slint as native from . import slint as native
import types import types
import logging import logging
from . import models
class CompileError(Exception): class CompileError(Exception):
@ -151,3 +152,5 @@ Image = native.PyImage
Color = native.PyColor Color = native.PyColor
Brush = native.PyBrush Brush = native.PyBrush
Model = native.PyModelBase Model = native.PyModelBase
ListModel = models.ListModel
Model = models.Model