Replies: 6 comments 2 replies
-
The short answer is that at present, you don't use secondary windows on mobile. That's just a limitation of the platform. The best workaround at present is to manipulate the root content of the window - change We're very aware that "high level app navigation" is an issue that Toga doesn't currently deal with well; we're hoping to be looking at this problem soon. We're also aware that there's a lack of tutorials and documentation for some of these high level tasks; that's the the unfortunate price for a toolkit that is still at v0.4. |
Beta Was this translation helpful? Give feedback.
-
So, I'm creating a new toga.Box object with all the content, and then calling and nothing happens
No change in the window Here is my NewChatWindow class for the most part. This used to be a toga.Window child, but that didn't work either.
|
Beta Was this translation helpful? Give feedback.
-
I'm just not sure how to accomplish this. I need a new window that acts like a dialog that gets input and has a send(save/Ok) button and a cancel button. Get the values of those inputs and then change the main window contents back to what it was previously. I'll need this for a settings page, about page, chat contents page (where the actual chat messages are displayed between the user and remote user), etc... |
Beta Was this translation helpful? Give feedback.
-
I also tried setting the main_window.content to
also nothing happens. |
Beta Was this translation helpful? Give feedback.
-
I made a sample example a while ago on how to navigate between boxes, I just uploaded the code for you: |
Beta Was this translation helpful? Give feedback.
-
I'm writing a chat app that is going to mimick the android and ios sms app. The app is for ham radio using APRS network.
I'm just starting to write the app and riding the steep learning curve for Toga. The chat app has a main list of discussions with other ham callsigns, a new button to start a new chat with someone. The problem is I don't know how to manage the visible window on ios/android.
clicking/tapping on the new button from the main chat list, opens a new window that contains
To:
Message:
The problem I just ran into on iOS is this error.
It would be nice if there was some real examples that shows how to manage windows for the mobile platforms. This seems like a lot of trial and error on my part on how to write/structure this app correctly.
I have seen the examples for widgets, but nothing to show how to write a real world app that has multiple other windows (settings, login, about) as well as how to use icons as buttons.
Thank in advance and I apoligize for my newbness.
Beta Was this translation helpful? Give feedback.
All reactions