Python Forum
Problem keeping the window up
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problem keeping the window up
#1
Hi I'm no coder I'm teaching my self python just for the fun of it. So forgive me if the is a ridiculous question but here goes.
What I'm trying to do is have one program open another in terminal. I came up with something that works, but the terminal window closes as soon as you enter a input. If I open the my_file Program manually in Terminal I can make as may entries as I wish, but if I use starter.py the window closes after the first entry.

This is the starter.py
#!/usr/bin/python3

import subprocess
subprocess.run(["gnome-terminal","--","my_file"])
This is my_file.py
#!/usr/bin/python               
while True:
    ds= str(input())
 
These obviously are not the programs I'm working on, they are just to demonstrate what I'm talking about.
Oh if it makes a difference I'm a Linux user ubuntu to be precise.
Thanks for any help Smile
Reply


Messages In This Thread
Problem keeping the window up - by benlyboy - Jan-22-2020, 02:31 AM
RE: Problem keeping the window up - by michael1789 - Jan-22-2020, 02:47 AM
RE: Problem keeping the window up - by benlyboy - Jan-22-2020, 10:33 AM
RE: Problem keeping the window up - by michael1789 - Jan-22-2020, 07:29 PM
RE: Problem keeping the window up - by benlyboy - Jan-23-2020, 12:00 PM
RE: Problem keeping the window up - by michael1789 - Jan-23-2020, 01:50 PM
RE: Problem keeping the window up - by benlyboy - Jan-23-2020, 05:10 PM
RE: Problem keeping the window up - by benlyboy - Jan-23-2020, 11:47 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Is there a way to call and focus any popup window outside of the main window app? Valjean 6 1,736 Oct-02-2023, 04:11 PM
Last Post: deanhystad
  Keeping up with IDEs and Virtual Environments... bytecrunch 7 2,486 Sep-05-2022, 08:04 PM
Last Post: snippsat
  Pyspark Window: perform sum over a window with specific conditions Shena76 0 1,164 Jun-13-2022, 08:59 AM
Last Post: Shena76
  Keeping a value the same despite changing the variable it was equated to TheTypicalDoge 2 1,453 Mar-13-2022, 10:50 PM
Last Post: Yoriz
  merging lists, dedup and keeping order, in older pythons Skaperen 3 3,160 Oct-19-2018, 01:30 AM
Last Post: ODIS
  Keeping Intersection of an Image Only Anysja 4 2,941 Aug-15-2018, 09:47 PM
Last Post: Anysja
  help with keeping score W3BL3Y 2 6,250 Apr-29-2018, 01:12 PM
Last Post: W3BL3Y

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020