I installed Python 3 by command opkg install python3, after that I installed Python3 Tkinter by command opkg install python3-tkinter, but if I use import tkinter from python it gives an error, that Python may not be configured for Tk, see pic.1:
[upload|KGmJIDfMYdieagxLDJZa7oTvr9E=]
The same situation with older version of Python 2.7.12, see pic.2:
[upload|bY8KdWsaYAIeicn/I2VO+6xeHwc=]
I don’t know how to configure Tcl/Tk for enable tkinter. I would like to try it for use GUI under Python. Have you any ideas? Maybe you have other ready-to-use GUI-framefork for Python, running on this kind of Linux?
Both, Python 2 and 3 are by default configured without tkinter support. Toradex added a build time configuration support with a bbappend to the python 2 recipe. You can enable tkinter support by using a PACKAGECONFIG in your local.conf:
Note: It seems that there have been discussions on the OpenEmbedded mailing list about integrating tkinter support upstream (e.g. here or here), but until now it seems that upstream Python OE recipes do not provide tkinter support.
But unfortunately, after opkg install python (only 2.7) and opkg install python-tkinter I still have the same error - Python may not be configured for Tk.