0

I took help from this website https://www.geeksforgeeks.org/make-notepad-using-tkinter/ and used the code to create a full-fledged text editor which was like the windows Notepad. Now, I want to integrate a terminal into it so that it can run the programs there itself.

3
  • The -container option to a frame sets it up to contain another window (that's Tk, not python tkinter). Reparenting or embedding another window is different on every system. You'll have to specify which OS you are using. Commented Sep 28, 2020 at 17:18
  • Windows 10 please Commented Sep 29, 2020 at 1:50
  • There is this information: wiki.tcl-lang.org/page/… , but you'll need to work out how to translate the information there into tkinter. Commented Sep 29, 2020 at 2:47

1 Answer 1

1

refer this:

os.system()

make sure to check the path of the file that you want to run

Sign up to request clarification or add additional context in comments.

2 Comments

Elaborate. I can't understand.
we use os.system('terminal command') so for executing a file we use os.system('python file_path') make sure file_path is accurate (use file dialog widget for that)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.