Does ChimeraX work with tkinter?

I tried to use `tkinter` instead of `PyQt` but it does not work with ChimeraX 1.6 or 1.7's Python interpreter and the error message is shown below: ``` import _tkinter # If this fails your Python may not be configured for Tk ModuleNotFoundError: No module named '_tkinter' ``` One solution I've found was to `sudo apt install tk-dev` but it was required to`configure` and `make` ChimeraX's Python interpreter after. Does ChimeraX work with tkinter? If yes, then how to?

ChimeraX uses the Qt Window toolkit. It is not easy to run two different window toolkits in the same application since each has its own event processing loop. So I recommend against trying to use Tkinter in ChimeraX. It would require a good deal of investigation and knowledge to get that to work. Our older program Chimera uses Tkinter as its window toolkit. We don't recommend using that program since it has not been developed for about 7 years, all new capabilities go into ChimeraX. But maybe it will work better for your purpose. One of the reasons we created the new program ChimeraX was because the Tkinter window toolkit is obsolete, poorly maintained, and lacks important capabilities like the ability to have html web pages in windows. Tom
On Jan 21, 2024, at 10:57 PM, thlin--- via ChimeraX-users <chimerax-users@cgl.ucsf.edu> wrote:
I tried to use `tkinter` instead of `PyQt` but it does not work with ChimeraX 1.6 or 1.7's Python interpreter and the error message is shown below:
``` import _tkinter # If this fails your Python may not be configured for Tk ModuleNotFoundError: No module named '_tkinter' ```
One solution I've found was to `sudo apt install tk-dev` but it was required to`configure` and `make` ChimeraX's Python interpreter after.
Does ChimeraX work with tkinter? If yes, then how to? _______________________________________________ ChimeraX-users mailing list -- chimerax-users@cgl.ucsf.edu To unsubscribe send an email to chimerax-users-leave@cgl.ucsf.edu Archives: https://mail.cgl.ucsf.edu/mailman/archives/list/chimerax-users@cgl.ucsf.edu/
participants (2)
-
thlin@oomii.com
-
Tom Goddard