This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2011-09-21 14:40:03

WindowsExplorer
Scratcher
Registered: 2011-02-25
Posts: 1000+

Using Python?

I know this might sound silly, but when I downloaded Python, i'm not exactly sure which file to open. Most of the files are docs and batch files.


http://i.imgur.com/H6LLdnK.pnghttp://i.imgur.com/VYuD7BY.png

Offline

 

#2 2011-09-21 14:42:43

ipodbiped
Scratcher
Registered: 2011-02-06
Posts: 1000+

Re: Using Python?

Same here. I downloaded 2.7.2 (and older version) and I'm confused.

Here is my thread.

Offline

 

#3 2011-09-21 14:49:52

roijac
Scratcher
Registered: 2010-01-19
Posts: 1000+

Re: Using Python?

i'm not sure about windows, but you probably should open it from cmd.
http://%20http//scratch.mit.edu/forums/viewtopic.php?id=75322 <== nice link  tongue
@WindowsExplorer, what version do you have?

Offline

 

#4 2011-09-21 16:22:30

fire219
Scratcher
Registered: 2008-02-07
Posts: 1000+

Re: Using Python?

It may be because I have Python 3.2 instead of 2.7, but Python has a command prompt and a GUI program (called IDLE), along with the file associations automatically set up. On my computer, at least.


http://bluetetrarpg.x10.mx/usercard/img.php?name=fire219

Offline

 

#5 2011-09-21 19:07:31

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: Using Python?

Both versions of Python come with the command line and IDLE GUI interfaces. You should be able to find them in your programs list under "Python [version number]".


http://www.blocks.scratchr.org/API.php?action=random&amp;return=image&amp;link1=http://i.imgur.com/OZn2RD3.png&amp;link2=http://i.imgur.com/duzaGTB.png&amp;link3=http://i.imgur.com/CrDGvvZ.png&amp;link4=http://i.imgur.com/POEpQyZ.png&amp;link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

#6 2011-09-21 20:43:24

AtomicBawm3
Scratcher
Registered: 2009-06-27
Posts: 1000+

Re: Using Python?

You can actually just open NotePad if you want I think...you just have to save it as a .py file.  If you want to edit it later, either go into IDLE and open it, or right-click and select Edit with IDLE.


http://i50.tinypic.com/j0yw0p.jpg

Offline

 

#7 2011-09-21 20:56:39

PW132
Scratcher
Registered: 2009-05-16
Posts: 1000+

Re: Using Python?

I just use command line.

You may have to fiddle around with paths, but I just type in "python (filename).py" and my program boots.


SCRATCH 2.0 OHHHHH MANNNNNNN
http://i18.photobucket.com/albums/b107/PsychicDeath/universe.gif

Offline

 

#8 2011-09-22 17:44:57

maxskywalker
Scratcher
Registered: 2008-01-27
Posts: 1000+

Re: Using Python?

Open IDLE.  It's the shell, which means that everything you do happens instantly, but you can't save anything (if you've done any Ruby, it's like IRB).  Open File>New Window to get programs you can save.  But you'll have to press F5 to run it, and save it first.

Offline

 

#9 2011-09-22 17:46:00

wulfmaster
Scratcher
Registered: 2011-04-23
Posts: 500+

Re: Using Python?

^^
You open the idle.


Social Connections - Bringing communities close together! http://cyberkidscountry.com/ip.php

Offline

 

#10 2011-09-22 17:49:34

maxskywalker
Scratcher
Registered: 2008-01-27
Posts: 1000+

Re: Using Python?

PW132 wrote:

I just use command line.

You may have to fiddle around with paths, but I just type in "python (filename).py" and my program boots.

Well, yeah, you can do that, but (1) I don't know if Windows computers have Python already on them (one of the triumphs of Mac: they have a bunch of programming languages like Ruby, Python, and Java (can't figure out how to use that one.  it says it can't run the Java VM) built in) and (2) Python is also the development environment.  In my opinion, it's the best one, too.  Speaking of which, am I the only one who finds the highlighting-parentheses-and-brackets-thing annoyng?  In Python, it also highlights the contents, which I like way more.

Offline

 

Board footer