I have problem when building the exe file where the MDFloatButton disable is not working after build exe, but it is working as usual before build.
for btn in self.ids.values(): # Loop through all widgets in self.ids
if isinstance(btn, MDFloatingActionButton) and btn != button_instance:
btn.disabled = True
this is the snipped code for button disable after click, but when i build , this function is not working, it does not disable the button after i click.
Im using:
Python 3.9.0
KivyMD 1.0.1
Pyinstaller 6.0.0
block_cipher = None
from kivy_deps import sdl2, glew
from kivymd import hooks_path as kivymd_hooks_path
a = Analysis(
['Main.py'],
pathex=[],
binaries=[],
datas=[('login.kv', '.')],
hiddenimports=['kivymd.icon_definitions.icon_definitions', 'kivymd.uix.button', 'kivy.properties'],
hookspath=[kivymd_hooks_path],
hooksconfig={},
runtime_hooks=[],
excludes=[],
cipher=block_cipher,
noarchive=False,
optimize=0,
)
pyz = PYZ(a.pure, a.zipped_data,
cipher=block_cipher)
exe = EXE(
pyz,
a.scripts,
a.binaries,
a.zipfiles,
a.datas,
*[Tree(p) for p in (sdl2.dep_bins + glew.dep_bins)],
name='Main',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
upx_exclude=[],
runtime_tmpdir=None,
console=True,
disable_windowed_traceback=False,
argv_emulation=False,
target_arch=None,
codesign_identity=None,
entitlements_file=None,
)
New contributor
Shah Shah is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.