How to pass params when switch_mode(create screen object)? #4480
Answered
by
TomJGooding
Yurii-huang
asked this question in
Q&A
-
I have two screen class types, named 'base' and 'edit','edit' needs to get some interface parameters from 'base' and dynamically generate interface 'edit', I try to use switch_mode and push_screen it seems that I can only pass the class type of 'base', and I can't get the instantiated object. What should I do if I want to generate and toggle 'edit' via the argument of 'base'? |
Beta Was this translation helpful? Give feedback.
Answered by
TomJGooding
May 9, 2024
Replies: 1 comment 4 replies
-
Sorry but I don't understand your question. Perhap a MRE (short example) would help demonstrate what you mean? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think the problem might be that you forgot to call `super().init(). Here's a quick example based on the code above which seems to work okay?