| View previous topic :: View next topic |
| Author |
Message |
sp0k3 How do I cheat?
Reputation: 0
Joined: 08 Jun 2007 Posts: 9
|
Posted: Thu Jun 14, 2007 11:18 am Post subject: python help |
|
|
Hi all, i just started learning python, ive downloaded python25 and i used a code just for an example in the pytho(GUI), i saved the document as blahblah.py I stuck it in the python folder in C:\ But it wont open, all that happends is the cmd window flashes. If anyone could help that would be great, Sorry about the noobienessss
i am new
-sp0k3
|
|
| Back to top |
|
 |
hcavolsdsadgadsg I'm a spammer
Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
Posted: Thu Jun 14, 2007 11:28 am Post subject: |
|
|
| Try running it from the command line. Then again I don't know anything about python so err
|
|
| Back to top |
|
 |
assaf84 Expert Cheater
Reputation: 0
Joined: 03 Oct 2006 Posts: 238
|
Posted: Thu Jun 14, 2007 11:31 am Post subject: |
|
|
| I don't know python, but I guess u need to compile it?
|
|
| Back to top |
|
 |
sp0k3 How do I cheat?
Reputation: 0
Joined: 08 Jun 2007 Posts: 9
|
Posted: Thu Jun 14, 2007 11:36 am Post subject: |
|
|
I have a compiler called shedskin but could you explain to me how to compile it? it has a file called init.bat But this opens in like a cmd window :S Im really new to this so any help would be good, ty
Slovach I tryd this but it does the same thing
|
|
| Back to top |
|
 |
RS Newbie cheater
Reputation: 0
Joined: 12 Jun 2007 Posts: 20
|
Posted: Thu Jun 14, 2007 2:43 pm Post subject: |
|
|
Unless I'm very much mistaken, Python is a scripting language so it's interpreted not compiled (Although, the interpreter does produced a compiled byte code file....) Anyways, just means there's one less step.
You should really consider something other than a graphical anything for your first program. A blank file is a valid Python program, however, try a hello world first:
| Code: | | print "Hello World!" |
Make sure Python is installed in your ClassPath (type "path" in the command prompt to check).
python <filename>.py is the usual command to evoke the interpreter.
|
|
| Back to top |
|
 |
sp0k3 How do I cheat?
Reputation: 0
Joined: 08 Jun 2007 Posts: 9
|
Posted: Fri Jun 15, 2007 4:16 am Post subject: |
|
|
| Thanks very much
|
|
| Back to top |
|
 |
|