mrJean1
mrJean1
Try ``` python3 -c 'import tkinter; print(tkinter.__file__)' ``` Perhaps, Monterey comes with Python 3.10. Not sure, just a guess.
That is the issue. `tkvlc.py` can't find the Tcl/Tk library in that Python installation. Please try ``` python3 -c 'import sys; print(sys.prefix)' ```
That looks good. One more ``` ls -l /opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.10/lib/libtk*
Python builds from `Python.org` include `libtkX.Y.dylib` in that directory. In the Homebrew version, things are different. Perhaps Homebrew installs Tcl/Tk somewhere else and Homebrew's Python finds that one. But `tkvlc.py`...
Unfortunately, that file name `/usr/lib/libtk.dylib` is returned by `find_library('tk')` but the file does not exist, at least on on my macOS: ``` python3 -c 'from ctypes.util import find_library; print(find_library("tk"))' /usr/lib/libtk.dylib...
Doesn't show the loading of the `libtkX.Y.dylib`. And `_tkinter` is loaded from a different place `/opt/homebrew/opt/[email protected]/libexec/_tkinter.cpython_310_darwin.so`. So, `libtkX.Y.dylib` can be anywhere. Not sure what to do next. No `Tk` mentioned...
@candymountain, if you used Homebrew to install Python with `tkvlc.py`, the path to the `libtk.dylib` is still the unresolved issue. Otherwise, what are your versions of `python-vlc`, VLC, Python and...
The [Homebrew](https://formulae.brew.sh/formula/[email protected]#default) site shows that `python-tk` is a separate install, separate from Python and separate from Tcl/Tk and the former depends on both the latter. The question remains, where does...
Thank you. Attached is a `tkvlc.py` version hacked for your @rkeniger Homebrew installation. Please try to run that with Homebrew's `python`. [tkvlcHomebrew.zip](https://github.com/oaubert/python-vlc/files/7508487/tkvlcHomebrew.zip) Any chance that this `tkvlc.py` files could be...
The `Window` class needs to handle some Tk events: at least add a `OnResize` method. Following is a modified `Window` class. This may not be sufficient, more may be needed....