TSMaster icon indicating copy to clipboard operation
TSMaster copied to clipboard

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

Open dragoudin opened this issue 1 year ago • 1 comments

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

dragoudin avatar Apr 11 '23 10:04 dragoudin

you can use python global var to achieve your requirements image

freshhope avatar Apr 11 '23 11:04 freshhope