Solved the issue - you're missing the BLT extension for Tcl (https://wiki.tcl-lang.org/page/BLT) to be able to use BLT. Since Python3 comes pre-packaged with Tcl 8.6 you'll need TkBLT (or some other fork that's compatible - http://sourceforge.net/projects/tkblt/ ) - unfortunately, they only provide source code which will require manually compiling and adding that package so it can be found. Other than this basic info there's not much I can help you with.
Having trouble reproducing this - I grabbed the mentioned example, changed Tkinter to tkinter for Python 3 compatibility but the example flows correctly under Python 3.10.4 - I did see such errors thrown when combined with other functions (i.e. input() ) but some example code and the Tcl/Tk version (using 8.6, maybe changed with Python 3.11?) would definitely help.
Hello! Sorry about the late response, I've been away from the Internet for some time. I'll try to investigate this - in the meantime, I moved the discussion over to https://sourceforge.net/p/pmw/discussion/131281/thread/c64f0c46a5/#877d - if you could provide me with the exact sample code over there (if it's something small and simple), that would be great.
Moving discussion from https://sourceforge.net/p/pmw/discussion/131281/thread/cf03cc28/#3604 here. I am using python 3.11.3. I am building a stock market package in python. I need menus in that package. For creating menus I want to use PMW package with tinker. To try my first steps, I used the code snippet at https://www.slac.stanford.edu/grp/cd/soft/pmw/blt/python/html/HelloBLT.html When I ran this script, I am getting this error: "Traceback (most recent call last): File "D:\PYTHON_3.11.3\Lib\site-packages\Pmw\Pmw_2_1_1\lib\PmwBlt.py",...
Hello, Just pushed a new version to https://pypi.org/project/Pmw/2.1.1/. Please check if it solves the problem - the version string bump is just a bad on my part since I failed to correctly upload the first time :)
Version bumps and classifier cleaning for pypi upload.
Fix for Python 3.9 when running tests.
Hello, Sorry about the late reply. I'm currently looking into fixing this issue - hopefully today, if not, in the next couple of days. I'll let you know as soon as I've uploaded the updated file.