简体   繁体   中英

Deploying a multiple window app in Kivy

This thread shows a way to open multiple windows in a Kivy app. It's necessary to create more than one app and then call the app that opens a new window when needed. I've never deployed a Kivy app. So my question is will that work if deploying for distribution? Can multiple apps be bundled up and put in an executable?

The app in question pops out a full screen window to a second display.

The multiple window situation with Kivy is an issue with what I'm working on. Fortunately the work around above will do but I don't want to continue going down that path if it won't deploy well/at all.

Yes this is possible. I did the same. I assume this counts for a windows application? If so I can provide you with a basic module framework which you could use. You need to make use of multiprocessing features where you instantiate separate kivy apps. Each app has it's own window definitions. Furthermore I make use of windows api to minimize <> maximize the windows. Just let me know if it is for windows and I will put togther the python code for you.

First thing: Window != Form . The question (and answer) only show a way how to communicate between multiple apps (multiple standalone things) and how to run multiple apps from the same interpreter. It may look like a working forms, but it's not... and most probably it won't even behave in this way eg changing color in other form won't work for you this way if you won't write a listener for that (no simple other_form.my_widget.color ). Look at this .

If it works in the interpreter, it will work after deploying if you package it correctly, because packaging is basically putting whole compiled-for-desired-platform interpreter with your .py file somewhere.

Anyway, why do you want to have multiple windows? The same thing you can make within Kivy only with Drag Behavior and ModalView keeping your whole app simple, clean and easier to debug.

(meaning = You'll have a lot of fun debugging those multiwindows if a customer breaks something and you don't have a proper logger)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM