Re: Open (txt) editor and get its content

2018-04-19 Thread Random832
On Thu, Apr 19, 2018, at 03:39, zljubi...@gmail.com wrote: > Is there any other option for getting interactive multi line input from user. If you don't need a full-featured text editor, you could build a simple input popup with the Textbox widget in tkinter. --

Re: Open (txt) editor and get its content

2018-04-19 Thread Rhodri James
On 19/04/18 08:39, zljubi...@gmail.com wrote: Hi, I have a script that should accept sql query as a parameter and change it in a way. For now I have a file in which I have put sql query and than python script opens it and do everything else. Is it possible to run python script that will open

Re: Open (txt) editor and get its content

2018-04-19 Thread Steven D'Aprano
On Thu, 19 Apr 2018 00:39:40 -0700, zljubisic wrote: > Is it possible to run python script that will open editor and let me > paste sql query in the editor, and than after closing editor, get > editor's content in python script? Try this recipe: it will work for many, but not all editors.

Open (txt) editor and get its content

2018-04-19 Thread zljubisic
Hi, I have a script that should accept sql query as a parameter and change it in a way. For now I have a file in which I have put sql query and than python script opens it and do everything else. Is it possible to run python script that will open editor and let me paste sql query in the