Is there any way to type into a Tkinter frame window?
Maybe using a proper text/line edit widget?
I want to use raw_input() within a Tkinter frame.
The builtin raw_input is for console input only. Of course, one could
implement a raw_input using a Tkinter dialog to query input, but its way
more easier and comfortable to just write a real GUI application.
--
Freedom is always the freedom of dissenters.
(Rosa Luxemburg)
Is there any way to type into a Tkinter frame window?
I want to use raw_input() within a Tkinter frame.
`raw_input(prom pt)` just calls `sys.stdout.wri te(prompt)` and returns
`sys.stdin.read line()`. So, you can just create file-like objects to
replace stdout and stdin that are aware of your Tkinter gui.
Alternatively, you could just replace __builtins__.ra w_input with your
own version.
Actual implementation left as an exercise for the user.
Comment