Skip to content
Discussion options

You must be logged in to vote

I have just recently started to familiarize myself with slint and have encountered one problem. From python I need to get data from TextEdit, so I decided to store property in global.

export global PercentageAdapter {
    in-out property <string> codeIn;
}

https://docs.slint.dev/latest/docs/python/slint In the documentation there is a section with access from python to the global property, but the instance (I think it's slint.loader.app_window) is only stored components.

def load():
    sys.path.insert(0, 'slint-gui')
    loader = slint.loader.app_window
    print(loader)

Your observation is correct, slint.loader.app_window contains a list of exported components. In your case, ou are …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@NikUvolen
Comment options

Answer selected by NikUvolen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants