Python: Make the re-exported classes show up property in the documentation

The variable assignment trick doesn't work for pdoc. Instead, fix the name properly and import them as re-export cleanly.
This commit is contained in:
Simon Hausmann 2025-02-08 23:13:21 +01:00 committed by Simon Hausmann
parent 08fc503f68
commit 74f1674c57
6 changed files with 19 additions and 21 deletions

View file

@ -2,9 +2,8 @@
# SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0
from slint import slint as native
from slint import Color, Brush
Color = native.PyColor
Brush = native.PyBrush
def test_col_default():