Is there anyway to add widget to Screen outside compose function? #3893
Answered
by
davep
MuongKimhong
asked this question in
Q&A
-
As far as i know, we can add widget to screen in compose function with class MyScreen(Screen):
def compose(self):
yield SomeWidget()
def on_some_event(self):
# add some widget
yield SomeWidget() # this is not working For remove, we can do |
Beta Was this translation helpful? Give feedback.
Answered by
davep
Dec 18, 2023
Replies: 1 comment
-
Perhaps a quick revisit to the tutorial is in order, there's a section about that. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
MuongKimhong
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Perhaps a quick revisit to the tutorial is in order, there's a section about that.