Pythonista-Issues icon indicating copy to clipboard operation
Pythonista-Issues copied to clipboard

Tk for pythonista

Open Telega-afk opened this issue 1 year ago • 9 comments

I need use Tk in pythonista. I try downloaded it with using sharp. When i try to run my code i have error "module not found" and other. Maybe someone help me, how to use all Tk in pythonista. Sry my ENG

Telega-afk avatar Oct 20 '24 13:10 Telega-afk

Compatibility with tk is nontrivial and will probably never happen.

Python 3.13 brings more direct support for iOS as discussed at https://docs.python.org/3/using/ios.html

cclauss avatar Oct 20 '24 14:10 cclauss

But I downloaded module Wikipedia with use sharp and it's work

Telega-afk avatar Oct 20 '24 17:10 Telega-afk

StaSH? Or Sharp?

Some modules will work but tk will not.

Read the StaSH docs.

cclauss avatar Oct 20 '24 20:10 cclauss

Oooh of course StaSh, my t9. Terrifying that it's not work. I wanna using my iPad for code in university. I don't want take laptop, mb have alternative?

Telega-afk avatar Oct 20 '24 20:10 Telega-afk

An alternative would be the ui module. It's included with Pythonista. Here is the documentation.

dCr01 avatar Dec 10 '24 23:12 dCr01

Hello, It seems possible (Python3IDE on iPadOS in v1.4 integrated tkinter based on TK 8.6) ... not tested yet

ftourand-gmail avatar Mar 27 '25 10:03 ftourand-gmail

Please try it before saying that it is possible.

cclauss avatar Mar 27 '25 10:03 cclauss

Please try it before saying that it is possible.

Dear cclaus You're right: I should have tried launching a simple "hello world.py" TK application on this IDE prior to post.

(At the moment, simple tk python script simply hang (passed the import of modules and hang on Tk() first instruction)

At the same time, I said "it seems possible" not "it is possible", and admit that I did n t test it yet. ... really not easy to enter into a community

Best regards Frederic

ftourand-gmail avatar Mar 27 '25 12:03 ftourand-gmail

The scene, ui or sound modules are the way to go in Pythonista.

  • https://omz-software.com/forum/archive/4839_tkinter-on-pythonista.html
  • https://omz-software.com/forum/archive/4501_import-tkinter.html

cclauss avatar Mar 27 '25 13:03 cclauss