py2app icon indicating copy to clipboard operation
py2app copied to clipboard

Tkinter linked against X11, not Cocoa

Open cyugao opened this issue 4 years ago • 2 comments

Hi, when I try to package a Tkinter app like this

from tkinter import Tk

root = Tk()
root.title("Feet to Meters")

root.mainloop()

The bundled app will use an X11-based Tkinter but not the Cocoa Tk. The libffi.8.dylib is also missing so I have to manually copy it to the Frameworks folder to make it work.

I am using Python 3.9.10 and tk 8.6.11.

cyugao avatar Jan 30 '22 05:01 cyugao

How did you install python? I cannot reproduce this using the python.org installer.

Does running this script using the python you're using use X11 as well?

ronaldoussoren avatar Feb 06 '22 11:02 ronaldoussoren

Hi. I was using the conda environment. I tried downloading the official Python and creating a virtualenv, but somehow the program just hung when entering the "choosing file" window. Maybe there's a bug in Tkinter.

cyugao avatar Feb 17 '22 04:02 cyugao