Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

For mini program (python), need to save in variable object #98

Open
dragoudin opened this issue Apr 11, 2023 · 1 comment
Open

For mini program (python), need to save in variable object #98

dragoudin opened this issue Apr 11, 2023 · 1 comment

Comments

@dragoudin
Copy link

In mini program (python), I import a module and I create a object àf my class.
For each callback, I want to call a method of my class. Unfortunatelly I cannot save my object in a variable (only string/int are supported).
Would be good to have the possibility to create an object on stat, then save it and reuse the object in any callback

@freshhope
Copy link
Member

you can use python global var to achieve your requirements
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants