VectorLinux
April 17, 2014, 02:13:48 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Visit our home page for VL info. To search the old message board go to http://vectorlinux.com/forum1. The first VL forum is temporarily offline until we can find a host for it. Thanks for your patience.
 
Now powered by KnowledgeDex.
   Home   Help Search Login Register  
Please support VectorLinux!
Pages: [1]
  Print  
Author Topic: python icons-SOLVED  (Read 1593 times)
brock
Member
*
Posts: 26


« on: April 01, 2008, 08:46:00 pm »

So I'm learning Python.  I need to save files and be able to double-click on the icon to activate the file, thereby activating the program.  But when I click on the "xxxxx.py" icon, it gets opened with mousepad.  What gives?  I'm sure it's just a little box not clicked or whatever but.....
« Last Edit: April 02, 2008, 08:37:51 pm by brock » Logged

ChemBook Laptop (it was free) 1.50 GHz 1 gig ram 1024x768 screen Ethernet-cable modem (working on wireless), Vector 5.9 Standard Gold, HD install, NO dual boot--windowsfree system!  prefer Xfce for now
bigpaws
Vectorian
****
Posts: 1831


« Reply #1 on: April 02, 2008, 03:47:16 am »

In the console use ls -la <file name> to make sure that what you
have is executable. If it is not then you can chmod +x <file name>

Bigpaws
Logged
lagagnon
Global Moderator
Vectorian
*****
Posts: 1922



WWW
« Reply #2 on: April 02, 2008, 06:09:56 am »

In whatever file manager you happpen to be using you need to find the options to change the association of the suffix .py to "python nameoffile.py". If those are text only python programs and you want to see the ouput in a shell then the association would be:
xterm -e python

(or whatever terminal you wish to use substitute xterm).
Logged

"As people become more intelligent they care less for preachers and more for teachers". Robert G. Ingersoll
brock
Member
*
Posts: 26


« Reply #3 on: April 02, 2008, 08:37:19 pm »

Great!  I added xterm -e python to the command to open the file and it works perfectly.  Thanks again.
Logged

ChemBook Laptop (it was free) 1.50 GHz 1 gig ram 1024x768 screen Ethernet-cable modem (working on wireless), Vector 5.9 Standard Gold, HD install, NO dual boot--windowsfree system!  prefer Xfce for now
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!