codeapp icon indicating copy to clipboard operation
codeapp copied to clipboard

Tkinter support not available? (yes I have the module installed)

Open ThatTakashi opened this issue 3 years ago • 4 comments

File "/private/var/containers/Bundle/Application/0F18B724-8306-48E3-9711-7DA94041CAE8/Code.app/Library/lib/python3.9/turtle.py", line 107, in import tkinter as TK File "/private/var/containers/Bundle/Application/0F18B724-8306-48E3-9711-7DA94041CAE8/Code.app/Library/lib/python3.9/tkinter/init.py", line 37, in import _tkinter # If this fails your Python may not be configured for Tk ModuleNotFoundError: No module named '_tkinter'

Would tkinter support be possible in the app?

ThatTakashi avatar Nov 20 '22 23:11 ThatTakashi

Unfortunately Tkinter is not supported. It requires a desktop OS environment to run.

bummoblizard avatar Nov 21 '22 03:11 bummoblizard

Unfortunately Tkinter is not supported. It requires a desktop OS environment to run.

Is there any way or workaround to this problem? What exactly Tkinter requires to run?

C4ntor avatar Nov 27 '22 19:11 C4ntor

I haven't dig into it too much but anything related to GUI requires a native bridge between Python and the OS.

That would not be supported because

  • Native components cannot be installed dynamically on iOS
  • The native backend (TK toolkit) isn't likely to work on iOS

bummoblizard avatar Dec 03 '22 10:12 bummoblizard

Could you do like a vm or smth

RuthPro2012 avatar Oct 28 '25 16:10 RuthPro2012