Jump to content

  • Log In with Google      Sign In   
  • Create Account

Environment for Python?


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
8 replies to this topic

#1 cgeo   Members   -  Reputation: 108

Like
0Likes
Like

Posted 12 February 2014 - 12:54 PM

Hello everybody!

 

I am new to programming, I only have worked on Scratch and I really think that I have to get a better programming language with more abilities for game developing. I found out that python is a good language to start with. So i downloaded the latest version (3.3.3), but once open it the command line pops out, and I cant save any project.

 

I have notepad++ witch is supposed to provide an environment for any language but i don't know how to use it!

 

So my question is:

 

Is there any good environment for python and how do i use notepad++?

If you can give me download links I would be very grateful!!!



Sponsor:

#2 PeterF   Members   -  Reputation: 606

Like
2Likes
Like

Posted 12 February 2014 - 02:14 PM

Hi cgeo,

 

If you're using Windows, you can use the IDLE IDE that ships with Python. It's not the most beautiful thing in the world, but it's already there. Just open it up and create a new file with it. You can run it natively in IDLE, so that's a good start.

 

If you're not on a Windows machine or you don't like IDLE (I wouldn't blame you, really), then you need to create and edit your Python programs in a text editor. I personally prefer SublimeText, but Notepad++ works just as well. Just save your file with a ".py" extension. To run a Python program on Windows, you can either navigate to the file in Windows Explorer and run it - this will open up the command line like you've already seen, or you can (and this is my personal preference) right click on it, "Edit with IDLE" and run it from there. It's not the most elegant solution, but IDLE provides good feedback on errors and won't just close when the program terminates for one reason or another. If you're on a Mac or *NIX, open up a terminal and run "python filename.py" where "filename" is whatever you named your file (prepended by the directory it's not in your current working directory).

 

I hope this helps!



#3 Diusrex   Members   -  Reputation: 690

Like
0Likes
Like

Posted 12 February 2014 - 04:03 PM

On windows, you can also run the python file from the command line by running "python filename.py". 

 

I know that eclipse (http://eclipse.org/downloads) can run python using pydev (http://pydev.org), don't know if eclipse works on mac or *nix, but it works on windows.



#4 walsh06   Members   -  Reputation: 662

Like
0Likes
Like

Posted 12 February 2014 - 04:41 PM

Notepad++ is good but Sublime is definitely my preferred one. I use it in work everyday and its very good.



#5 Shippou   Members   -  Reputation: 1523

Like
1Likes
Like

Posted 12 February 2014 - 05:37 PM

PyScripter is the best ( that I know of ) Python IDE .

 

Much better interface than IDLE !


 Reactions To Technologies:
1. Anything that is in the world when you’re born is normal and ordinary and is just a natural part of the way the world works.
2. Anything that's invented between when you’re fifteen and thirty-five is new and exciting and revolutionary and you can probably get a career in it.
3. Anything invented after you're thirty-five is against the natural order of things.

- Douglas Adams 2002


 


#6 SiCrane   Moderators   -  Reputation: 9594

Like
2Likes
Like

Posted 12 February 2014 - 10:50 PM

At work most of us use PyCharm.



#7 cgeo   Members   -  Reputation: 108

Like
0Likes
Like

Posted 13 February 2014 - 08:12 AM

Thanks to all of you guys I'm going to check some of your suggestions.

Also I have windows xp but I hope that in the end of the month i'll have a new pc with windows 7!

 

Oh, and what about graphics? How do I create graphics? I've heard something about PyGame... 


Edited by cgeo, 13 February 2014 - 08:19 AM.


#8 Shippou   Members   -  Reputation: 1523

Like
0Likes
Like

Posted 13 February 2014 - 09:35 AM

Don't expect fantastic graphics from Python.

 The 3rd party library PyGame can support graphics, but you can also use Zelle's Graphics.py ( tutorial )


 Reactions To Technologies:
1. Anything that is in the world when you’re born is normal and ordinary and is just a natural part of the way the world works.
2. Anything that's invented between when you’re fifteen and thirty-five is new and exciting and revolutionary and you can probably get a career in it.
3. Anything invented after you're thirty-five is against the natural order of things.

- Douglas Adams 2002


 


#9 DvDmanDT   Members   -  Reputation: 890

Like
0Likes
Like

Posted 13 February 2014 - 10:27 AM

There's also Python tools for Visual Studio: https://pytools.codeplex.com/

 

Support for both CPython and IronPython, with debugging and all. I haven't tried, but I believe you can use it from the free Visual Studio Integrated Shell.






Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS