Game Programming and Development Tools

Python – Curry

Curry
Member

Posts: 134
From: USA
Registered: 11-21-2002

Since there are some Python fans here...I am interested and have been reading an overview about the language but have a few questions.

Is it straightforward to create standalone apps?

Is there a visual editor for forms and so on? (And for resources like images and sounds, for example? (Just curious.))

Would you say it's a good language for creating desktop apps/utilities and games?

Any issues or difficulties/complications that have come up for you when using Python for finished projects/products?

Thanks very much,

Curry

CPUFreak91

Member

Posts: 2337
From:
Registered: 02-01-2005
quote:
Originally posted by Curry:

Since there are some Python fans here...I am interested and have been reading an overview about the language but have a few questions.

Great!

quote:

Is it straightforward to create standalone apps?


No. You need to download a module called py2exe (I think it's on sourceforge) for windows and py2app for mac. For Linux/UNIX you can't create and "standalone app" you just add #! /usr/bin/env python to the top of the python program and it will work like a stand-alone

Py2exe and py2app don't really compile the program they just incorporate the needed parts of the Python interpreter and modules into a standalone file.

quote:
Is there a visual editor for forms and so on?


I don't exactly know what you mean.... if you talking about IDE's... yes! I'll mention a few anyway:
pype
Dr. Python
ILDE (comes with the windows version of python but it works with any os)
Eric
Boa Constructor
and many others.

quote:
(And for resources like images and sounds, for example? (Just curious.))


pymedia
pil (python imaging library)

quote:
Would you say it's a good language for creating desktop apps/utilities and games?


Yes! I've only been coding for 5 months (in OOP) and I've already created a piucture reader, music player, GUI apps and many others (currently I'm working on a IRC client)


quote:
Any issues or difficulties/complications that have come up for you when using Python for finished projects/products?

Um no, not really except for the fact that here on CCN no one really uses python that much.... Google uses it... nope. Still can't think of anything.

------------------
Linux is best for me and Windows or Mac is best for you. End of age long argument.
--
See the CCN Chat worklog

Learn How to Use Linux

Curry
Member

Posts: 134
From: USA
Registered: 11-21-2002

Thanks, CPUFreak, that helps a lot to know about those tools. One more question: can you protect the source code when you distribute a product?

I've downloaded Python and Pygame.

Curry

CPUFreak91

Member

Posts: 2337
From:
Registered: 02-01-2005
quote:
Originally posted by Curry:

Thanks, CPUFreak, that helps a lot to know about those tools. One more question: can you protect the source code when you distribute a product?

For Linux, no, I don't think so (sign up for the Tutor Mailing List @ python.org and ask that question). For Mac and Windows (becasue of py2app and py2exe yes. The .exe is unreadable so no one can steal your code).

------------------
Linux is best for me and Windows or Mac is best for you. End of age long argument.
--
See the CCN Chat worklog

Learn How to Use Linux

en972

Member

Posts: 562
From: NOT TELLING!
Registered: 08-27-2004
You can make it an exe with linux. Just open up the Konsle and go into same palce as file. Then type chmod 700 "file" but without quotes and the filename and extension of your program.

------------------
Oh you program? Awsome! I try to get in a little....I spend most of my time debugging.

CPUFreak91

Member

Posts: 2337
From:
Registered: 02-01-2005
quote:
Originally posted by en972:
You can make it an exe with linux. Just open up the Konsle and go into same palce as file. Then type chmod 700 "file" but without quotes and the filename and extension of your program.


How does that work? YOu can still read it (I think chmod a+x works or +x best)

------------------
Linux is best for me and Windows or Mac is best for you. End of age long argument.
--
See the CCN Chat worklog

Learn How to Use Linux

en972

Member

Posts: 562
From: NOT TELLING!
Registered: 08-27-2004
Oh yeah I didn't see he wanted to make sure no one ele could get his source.

------------------
Oh you program? Awsome! I try to get in a little....I spend most of my time debugging.

CPUFreak91

Member

Posts: 2337
From:
Registered: 02-01-2005
quote:
Originally posted by en972:
Oh yeah I didn't see he wanted to make sure no one ele could get his source.



Hmm read permison would make the program unexecutable wouldn't it?

------------------
Linux is best for me and Windows or Mac is best for you. End of age long argument.
--
See the CCN Chat worklog

Learn How to Use Linux

Klumsy

Administrator

Posts: 1061
From: Port Angeles, WA, USA
Registered: 10-25-2001
ironpython creates full dotnet executables, and runs much faster than standard python.

------------------
Karl /GODCENTRIC
Visionary Media
the creative submitted to the divine.
Husband of my amazing wife Aleshia
Klumsy@xtra.co.nz

CPUFreak91

Member

Posts: 2337
From:
Registered: 02-01-2005
quote:
Originally posted by klumsy:
ironpython creates full dotnet executables, and runs much faster than standard python.


However it is not cross platform and is for the .NET framework. Boo uses the .NET and/or Mono famework and is very similar to python. It's also more corss platform and is compileable.

------------------
Linux is best for me and Windows or Mac is best for you. End of age long argument.
--
See the CCN Chat worklog

Learn How to Use Linux

HanClinto

Administrator

Posts: 1828
From: Indiana
Registered: 10-11-2004
Are you sure? I've checked into it a little bit, and while IronPython isn't quite yet finished, there are a couple of people who seem to be doing some stuff with IronPython on Mono.

Looking at the release notes for Mono 1.1.9, you can see that they claim "Mono can run the IronPython test suite".

So while it may not be polished, I think they're "getting there" as far as cross-platform-ability.

Cheers!

--clint

------------------
http://www.includingjudas.com/christiangame.html

Klumsy

Administrator

Posts: 1061
From: Port Angeles, WA, USA
Registered: 10-25-2001
hey this boo looks interesting

------------------
Karl /GODCENTRIC
Visionary Media
the creative submitted to the divine.
Husband of my amazing wife Aleshia
Klumsy@xtra.co.nz

CPUFreak91

Member

Posts: 2337
From:
Registered: 02-01-2005
quote:
Originally posted by klumsy:
hey this boo looks interesting

Yes it is. It would be even more interesting when I can download Mono to play with it! It can be found @ http://boo.codehaus.org/ if you wanna play with it.
No offense klumsy.. but, why don't you post much?

------------------
Linux is best for me and Windows or Mac is best for you. End of age long argument.
--
See the CCN Chat worklog

Learn How to Use Linux

Klumsy

Administrator

Posts: 1061
From: Port Angeles, WA, USA
Registered: 10-25-2001
i looked at that boo site, i liked the idea alot, though probably will never have the time to mess with it

why don't i post much. i've had my season of posting alot, and have contributed many many words in many posts , just busy these days and have other priorities i suppose

------------------
Karl /GODCENTRIC
Visionary Media
the creative submitted to the divine.
Husband of my amazing wife Aleshia
Klumsy@xtra.co.nz

CPUFreak91

Member

Posts: 2337
From:
Registered: 02-01-2005
quote:
Originally posted by klumsy:

why don't i post much. i've had my season of posting alot, and have contributed many many words in many posts , just busy these days and have other priorities i suppose


Ah. Ok. That explains a lot!

------------------
Linux is best for me and Windows or Mac is best for you. End of age long argument.
--
See the CCN Chat worklog

Learn How to Use Linux

CPUFreak91

Member

Posts: 2337
From:
Registered: 02-01-2005
Wait!!! I just found out.. You can byte "compile" python programs (so that they are unreadable as text) with:

import compileall
compileall.compile_dir("/path/to/dirctory")

This works on any os and you don't need to have py2app or py2exe. (this is great for linux which doesn't have any of those programs)

------------------
Linux is best for me and Windows or Mac is best for you. End of age long argument.
--
See the CCN Chat worklog

Learn How to Use Linux

Realm Master

Member

Posts: 1971
From: USA
Registered: 05-15-2005
so many language... and so little time (average life span of 80-100 years)..

python sounds cool, but im working on C++ and I want to get REALLY good at C++ (and, admittidly, their gfx engies), then I want ot move on to Java, and tha'd be 3 languages there, could i remember all the seperate rules for 4 languages if i learn python after java? (or before depending on the situation...)

------------------
(yes, i know im stupid)
God rules!

Blessed are those who show mercy.
They will be shown mercy. - Matthew 5:7

Blessed are those who suffer for doing what is right.
The kingdom of hevan bleongs to them.-Matthew 5:10