Announcement

Collapse
No announcement yet.

Quick Python Question

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Quick Python Question

    Hi All,

    I'm am a complete newbie when it comes to programming. Currently I am teaching myself how to program in Python using a book I picked up from Amazon. It's a pretty good book, however it tends to be slightly orientated towards programming in Windows environment. One of the exercises involves coding a simple console program then running the programming by double clicking on it's icon within the windows GUI.

    I've created the program, it runs properly when called from the command line. However when I double click on the program file from within Konqueror instead of running the program it opens the file in a text editor. Is there a way I can get the program to run by double clicking on it from within Konqueror? If so how ?

    Many thanks

    Raven

    #2
    Re: Quick Python Question

    It's basically the same proccess than in Windows.

    You should associate the .py extension with the python interperter.

    Right click on the file, select open with, select other.
    In the new window type "python" and mark remember selection.

    Javier.

    Comment


      #3
      Re: Quick Python Question

      Thanks javierrivera

      Comment

      Working...
      X