LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-16-2014, 12:39 PM   #1
dave newbie
LQ Newbie
 
Registered: May 2014
Posts: 3

Rep: Reputation: Disabled
Thumbs up problem accosiating python to ,py files


my brother and i have being trying to make python run a .py module it can run in idle but i would like to make it run by double clicking like it does in windows
 
Old 05-16-2014, 12:41 PM   #2
dave newbie
LQ Newbie
 
Registered: May 2014
Posts: 3

Original Poster
Rep: Reputation: Disabled
more info it is in a zorin8 gaming os and doesnot function with idle 2.7 but can be run within idle3 or idle3 (with pytoh3,3) we would like it to function as it does in the windows world its written in python 3.4 could this be the problem

Last edited by dave newbie; 05-16-2014 at 12:43 PM.
 
Old 05-16-2014, 04:03 PM   #3
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by dave newbie View Post
we would like it to function as it does in the windows world
well, that's always a bad idea.

but, all jokes aside, you would like it to open on doubleclick. fair enough.
you say it is written in python 3.4.
which version of python is installed? if it's 3.4, too, all you have to do is right-click the file, go to "open with..." -> choose default -> (here you have to find the proper python executable, most probably /usr/bin/python or /usr/bin/python3.4)
this is not an exact steb-by-step because i am not using zorin's file manager, but it should give you a general picture.
 
Old 05-16-2014, 04:12 PM   #4
dave newbie
LQ Newbie
 
Registered: May 2014
Posts: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ondoho View Post
well, that's always a bad idea.

but, all jokes aside, you would like it to open on doubleclick. fair enough.
you say it is written in python 3.4.
which version of python is installed? if it's 3.4, too, all you have to do is right-click the file, go to "open with..." -> choose default -> (here you have to find the proper python executable, most probably /usr/bin/python or /usr/bin/python3.4)
this is not an exact steb-by-step because i am not using zorin's file manager, but it should give you a general picture.
unfortunately zorin does not allow you to browse to the appropriate application.

to use the right-click require we add the application to the chooser first then do the right-click to select the application.

nothing so far explains this process or how to make aliases that work with the python shell and the shebang also fails to resolve the issue.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Python renaming files mwade Programming 3 10-23-2006 07:39 AM
Patching Python files Dee-ehn Linux - Software 2 10-03-2006 02:02 AM
python problem - compiled from source - python -V still showing old version txm123 Linux - Newbie 1 02-15-2006 11:05 AM
Python and binary files The_Nerd Programming 2 08-27-2004 02:48 PM
Regex search in files with python smokybobo Programming 0 11-08-2003 06:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:49 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration