473,386 Members | 1,823 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Can a Python script be invoked like a exe?

Hi,

I have a file say GUI.py which on executing (F5 in IDLE) would display the GUI with some check buttons, text field.

Is there any way that the same script be invoked like a exe file.
Something like double clicking an exe.

If yes, then how do i do that?

Kindly help me in this regard.

thanks,
BK
Dec 20 '06 #1
4 2916
bvdet
2,851 Expert Mod 2GB
Hi,

I have a file say GUI.py which on executing (F5 in IDLE) would display the GUI with some check buttons, text field.

Is there any way that the same script be invoked like a exe file.
Something like double clicking an exe.

If yes, then how do i do that?

Kindly help me in this regard.

thanks,
BK
Check out this thread: http://www.thescripts.com/forum/thread578225.html
Dec 20 '06 #2
dshimer
136 Expert 100+
Because of impatience with some snags that my own poor coding probably caused that resulted in my having problems with py2exe (which I really liked), I have started using PyInstaller. For what I was doing it was just a couple of minutes from download to my first exe, and I have been quite pleased with the ease and results.
Dec 20 '06 #3
bartonc
6,596 Expert 4TB
Hi,

I have a file say GUI.py which on executing (F5 in IDLE) would display the GUI with some check buttons, text field.

Is there any way that the same script be invoked like a exe file.
Something like double clicking an exe.

If yes, then how do i do that?

Kindly help me in this regard.

thanks,
BK
To be able to double-click an icon to make your scipt run (my system is set to do this), use Explorer:Tools:Folder Options:File Types tab; select PY and Change to Python. You may also use Advanced to set additional things (Edit with IDLE) which you access with right-click.

Please be kind enough to post a reply saying what works or doesn't work for you.
Dec 20 '06 #4
bartonc
6,596 Expert 4TB
To be able to double-click an icon to make your scipt run (my system is set to do this), use Explorer:Tools:Folder Options:File Types tab; select PY and Change to Python. You may also use Advanced to set additional things (Edit with IDLE) which you access with right-click.

Please be kind enough to post a reply saying what works or doesn't work for you.
If you don't need to see output and/or the command screen bugs you, you can set PYW to pythonw and save you files as .pyw (python without output window). Then when you double-click then they look just like a Window program (especially if you use wxPython as you GUI toolkit).
Dec 21 '06 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Logan | last post by:
Several people asked me for the following HOWTO, so I decided to post it here (though it is still very 'alpha' and might contain many (?) mistakes; didn't test what I wrote, but wrote it - more or...
8
by: Tero Pihlajakoski | last post by:
Hi, I've been experimenting on embedding Python to a C software, and ran into a little problem with PYTHONPATH (I'm running on linux). Here's the deal: When trying to call...
3
by: Peter Schwalm | last post by:
I'd like to modify the python search path depending on the source directory of the script being started. The reason is: I use a version control system, and the python scripts and modules are...
2
by: Kurt B. Kaiser | last post by:
Patch / Bug Summary ___________________ Patches : 240 open ( -1) / 2655 closed (+15) / 2895 total (+14) Bugs : 766 open ( +0) / 4514 closed (+22) / 5280 total (+22) RFE : 155 open...
4
by: LarsenMTL | last post by:
Python Users: Based on previous suggestions from this group, I'm attempting to write a python CGI that takes input from an HTML form, invokes a second python script using this input, tells the...
1
by: lode leroy | last post by:
Hi folks, I'm trying to build a python module using MINGW on MSYS the "configure" script is determining where python is installed as follows: python.exe -c 'import sys; print sys.prefix'...
4
by: vagrantbrad | last post by:
I'm using python 2.4 running on Fedora Core 4. I have written a python program called ipscan.py that checks the external ip address of my cable internet connection, and on change, will update the...
37
by: John Salerno | last post by:
I contacted my domain host about how Python is implemented on their server, and got this response: ------------------- Hello John, Please be informed that the implementation of python in our...
34
by: Ben Sizer | last post by:
I've installed several different versions of Python across several different versions of MS Windows, and not a single time was the Python directory or the Scripts subdirectory added to the PATH...
4
by: durumdara | last post by:
Hi! My problem is that: The "test.py" is working in every machine that I use except in my home machine. Formerly it worked but now not. I don't know what happened, I searching for some...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.