Releasing Ubuntu Touch Components 1.2.0 a minor feature. You can install it to your project by running:
curl -s https://raw.githubusercontent.com/brennoflavio/ut-components/refs/heads/master/scripts/install.sh | bash
Which will copy the qml and python files to qml and src folder.
Here’s the features added.
Backport of Enum package
With Noble release, there was additions to the enum package, that started being used by Sealed Bitwarden client. To ensure compatbility with Focal users,
this releases makes the enum package available from ut-components, so it will work on older python versions.
To use it, you can import like this:
from src.ut_components.enum import StrEnum
class Test(StrEnum):
test = 'test'
print(f"{Test.test}-test") # "test-test"