Hi all,

sometime ago I've tried to make a drop-in replacement of 'tkinter' working in 
pure text mode with curses.
Why? Its useful if one needs to connect to remote machine with ssh over slow 
connections, or no graphics are possible.
Thanks to AI (AI is really getting very powerful), I've managed to complete it,
even working beautifully for large 300'000 lines tkinter application.

Who ever wants to try it you can find it at
https://github.com/vlachoudis/tktext

You can import it as a replacement of tk as `import tktext as tk`

or on an existing tk application as
```
if "--text" in sys.argv:
      sys.argv.remove("--text")
      import tktext
      tktext.install()

import tkinter as tk
```
once, only before the first `import tkinter` (then it redirects every import 
tkinter to tktext)

or without changing at all the tk program, creating an python wrapper (see 
examples/tkrun.py) that calls your program
```
import sys
import runpy
import tktext
tktext.install()
if len(sys.argv) < 2: sys.exit(__doc__)
sys.argv = sys.argv[1:]
runpy.run_path(sys.argv[0], run_name='__main__')
```

Vasilis

_______________________________________________
Tkinter-discuss mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/tkinter-discuss.python.org
Member address: [email protected]

Reply via email to