mirror of
https://github.com/allankoechke/slint.git
synced 2026-11-30 10:58:19 +00:00
11 lines
350 B
Python
11 lines
350 B
Python
# Copyright © SixtyFPS GmbH <info@slint.dev>
|
|
# SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-1.1 OR LicenseRef-Slint-commercial
|
|
|
|
from . import slint as native
|
|
|
|
def load_file(path):
|
|
compiler = native.ComponentCompiler()
|
|
compdef = compiler.build_from_path(path)
|
|
instance = compdef.create()
|
|
return instance
|