My suggestion: have app.run() be the last thing in your file.
Move the code you want to run at exit into on_stop()
In App
def on_stop(self):
# code you want to run when the app closes.
--
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/2ca1facf-1755-4e6a-9a6f-f9b84d41dd00%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-...@googlegroups.com.
On Mar 31, 2020, at 12:48 PM, Gunnison Gunnison <bgun...@gmail.com> wrote:
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/5f9ef487-be7e-4e80-9f7e-f6299fa1b52e%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/5f9ef487-be7e-4e80-9f7e-f6299fa1b52e%40googlegroups.com.
I’ve never had this issue with pyinstaller. Is there some connection or file you could have left open that is causing the process not to clean up?
I see your doing midi, are you closing the ports? (just guessing)
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/010359c4-f616-426e-b3aa-ffb20528bae1%40googlegroups.com.
I’ve never had this issue with pyinstaller. Is there some connection or file you could have left open that is causing the process not to clean up?
I see your doing midi, are you closing the ports? (just guessing)
No ports are opened in this case, but good guess ;)
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/010359c4-f616-426e-b3aa-ffb20528bae1%40googlegroups.com.
It is specified in the spec file.
Here is my spec file for Windows10:
# -*- mode: python -*-
import os
from kivy_deps import sdl2, glew
spec_root = os.path.abspath(SPECPATH)
block_cipher = None
app_name = 'Chase Bliss Editor'
win_icon = '../Images/cb_icon.ico'
a = Analysis(['../main.py'],
pathex=[spec_root],
datas=[('../*.kv', '.'), ('../Images/*.png', './Images')],
hiddenimports=['win32timezone'],
hookspath=[],
runtime_hooks=[],
excludes=[],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher,
noarchive=False)
pyz = PYZ(a.pure, a.zipped_data,
cipher=block_cipher)
exe = EXE(pyz,
a.scripts,
[],
exclude_binaries=True,
name=app_name,
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=False,
console=False,
icon=win_icon)
coll = COLLECT(exe,
a.binaries,
a.zipfiles,
a.datas,
*[Tree(p) for p in (sdl2.dep_bins + glew.dep_bins)],
strip=False,
upx=False,
name=app_name)To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/51f3f7c0-4df0-4843-8291-d3830cafe222%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/51f3f7c0-4df0-4843-8291-d3830cafe222%40googlegroups.com.