Open new window and Close it using back btn in Android toga/python #1410
Unanswered
salahshakoori20
asked this question in
Q&A
Replies: 1 comment 9 replies
-
Android (and mobile platforms) doesn't support the concept of new windows. This is a restriction of the device type - phones don't have the idea of "windows" in the same way that a desktop app does. |
Beta Was this translation helpful? Give feedback.
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi
i created a new window from main window in Android application using this code:
new_window = toga.Window(title='new window')
self.windows.add(new_window)
secondary_label = toga.Label(text='you are in a secondary window!')
box = toga.Box(style=Pack(direction=COLUMN, padding=10))
box.add(secondary_label)
new_window.content = box
new_window.show()
this work currectly
But how to close it(using back btn Android) and how to using On_close handler of it (on_close is not implemented?)
Beta Was this translation helpful? Give feedback.
All reactions