1

I've used Tkinter or wxWidgets for some projects: this opens a new window in graphical mode (GUI) in which you can do what you want.

Can I ask Python to open a new text-mode window (let's say 80x25 terminal), independant from the terminal where I run myscript.py, in the same way that a Tkinter window is independant from the current terminal where I run myscript.py?

What do I want to achieve? Having a GUI, but in textmode! (this might sound tricky because G in GUI means graphical!)

Does tkInter, wxWidget, pyglet, etc. have a feature to open a text-mode terminal-look GUI? With 80x25 text display?

Basj
  • 36,818
  • 81
  • 313
  • 561

1 Answers1

0

For this you will need to make a seperate script but it works.

Use this code in your launcher script.

from sys import executable
from subprocess import Popen, CREATE_NEW_CONSOLE

Popen([executable, 'myscript.py'], creationflags=CREATE_NEW_CONSOLE)

input('Enter to exit from this launcher script...')

Source

Community
  • 1
  • 1
Jonah Fleming
  • 1,195
  • 3
  • 18
  • 31