Go Back   Computer Forums > General Computing > Programming
Click Here to Login
Join Computer forums Today


Reply
 
Thread Tools Search this Thread Display Modes
 
Old 09-10-2005, 11:57 PM   #1
Fully Optimized
 
-Paul-'s Avatar
 
Join Date: Jun 2005
Posts: 2,242
Send a message via AIM to -Paul- Send a message via MSN to -Paul-
Default python question

is there a way to make python, when i click on the icon of my program, popup in the command program, execute, and then not make the command program disapear? also i know python is real simple but what are some programs that can be made with it
__________________

-Paul- is offline   Reply With Quote
Old 09-11-2005, 04:27 AM   #2
Fully Optimized
 
dyserq's Avatar
 
Join Date: Jul 2005
Posts: 2,281
Default Re: python question

Yea just run it from command prompt in the first place
You computer executes the commands so fast that after it finishes, it closes itself, therefore, at the speed of today's computer, it closes itself almost immediately after it has been executed by the computer
__________________

dyserq is offline   Reply With Quote
Old 09-11-2005, 12:19 PM   #3
Fully Optimized
 
-Paul-'s Avatar
 
Join Date: Jun 2005
Posts: 2,242
Send a message via AIM to -Paul- Send a message via MSN to -Paul-
Default Re: python question

Quote:
Originally Posted by dyserq
Yea just run it from command prompt in the first place
You computer executes the commands so fast that after it finishes, it closes itself, therefore, at the speed of today's computer, it closes itself almost immediately after it has been executed by the computer
thanks but is there a way to change some settings so that the window does not close after it executes
-Paul- is offline   Reply With Quote
Old 09-12-2005, 06:08 AM   #4
Fully Optimized
 
dyserq's Avatar
 
Join Date: Jul 2005
Posts: 2,281
Default Re: python question

Yes, you change the directory that your running command prompt from and then just type in the file name, for example if the file was saved onto your desktop your command line should appear something like

C:\documents and settings\me\desktop>python.exe

The program will still run but it will be confined into ms-dos and will remain open, unlike the windows way of opening, executing and then exiting within the space of a millisecond
Hmm ... for example if you do a simple

PRINT 'testing'

The computer will run and then execute and then close
But if you open it via ms-dos then it will appear in command line but it will remain open ... good luck
dyserq is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



All times are GMT -5. The time now is 11:59 PM.


Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0