rustywild245
Jul 27, 2013 - 21:46
Hi:
Someone know if is possible install tkinter in ppythonista?
thanx
Hi:
Someone know if is possible install tkinter in ppythonista?
thanx
Right now it is not possible.
Do you mean that Ole includes tkinter in a future release?
IMHO extremely hard work.
See this link:
http://mail.python.org/pipermail/tkinter-discuss/2013-March/003380.html
As far as I know, you can not (currently) use tkinter in Pythonista but as least you can (with a lot of work) build a single Python app that will run on either tkinter or Pythonista scene.
I am building a game that I want the user to be able to run on:
Using the MVC programming pattern, my goal is to have a single Controller and a single Model but have three different Views (tkinter, scene, text only). It will be a real test of separation of concerns. Wish me luck!
guiSystem = None
try: # tkinter on Python3
import tkinter
guiSystem = 'tkinter'
except ImportError:
try: # tkinter on Python2
import Tkinter as tkinter
guiSystem = 'tkinter'
except ImportError:
try: # scene on Pythonista on iOS
import scene
guiSystem = 'scene'
except ImportError:
pass
print('guiSystem:', guiSystem)