Hi,
I'd like to know how to load commands from a file. In the file (in this
case a .txt) there would be commands like glBegin(GL_QUADS). I would like
to load these commands into a program so that the commands can be executed.
Previously, I had been selecting all in the .txt file and pasting all
[EMAIL PROTECTED] wrote:
Hi,
I wonder what happened to the pygame-ctypes project lately. Is the
development just stalled
because of not enough time or did the author loose the interest in it?
Some rumors I heard in #pygame were that the author was pretty
disappointed of the rather
hot
Hi,
I wonder what happened to the pygame-ctypes project lately. Is the
development just stalled
because of not enough time or did the author loose the interest in it?
Some rumors I heard in #pygame were that the author was pretty
disappointed of the rather
hot discussion we had some time
Alex Holkner posted a message about pygame-ctypes in December 06, that
ended with this:
The result of the pygame-users discussion a few months ago was that
Pygame-ctypes development would effectively be stopped, as there was
little support for it developing in place of Pygame(C). If there is
Ian Mallett [EMAIL PROTECTED] wrote:
I'd like to know how to load commands from a file. In the file (in this
case a .txt) there would be commands like glBegin(GL_QUADS). I would
like
to load these commands into a program so that the commands can be
executed.
Previously, I had been
I think this is what I need! Thank you, once again.
Ian
I'm curious - so why are these commands in a .txt file? what is the
application of this in the context of a game? (I'm thinking maybe
somebody knows a better way to accomplish your goal, as opposed to
simply answering a technical python question)
On 7/26/07, Ian Mallett [EMAIL PROTECTED] wrote:
On 7/26/07, Brian Fisher [EMAIL PROTECTED] wrote:
I'm curious - so why are these commands in a .txt file? what is the
application of this in the context of a game? (I'm thinking maybe
somebody knows a better way to accomplish your goal, as opposed to
simply answering a technical python
I'm not sure if this is exactly what you want, but there's an exec
command that takes a file object and interprets it as a python script.
I think there are also variants that take a file name, and there might
also be variants to run the file in a sandbox.
--Mike
Ian Mallett wrote:
Hi,
I'd
Ian Mallett kirjoitti:
I'd like to know how to load commands from a file. In the file (in
this case a .txt) there would be commands like glBegin(GL_QUADS). I
would like to load these commands into a program so that the commands
can be executed. Previously, I had been selecting all in the
it's a builtin. You can just use it from anywhere
FYI, the argument can be either a string of code or an open file
object - It can't be a filename (cause how is a filename different
from a string?) and I don't believe it has any safe or sandboxed
variant right now (though some people are working
Sounds like what I want- but where is it?
On 7/26/07, Michael George [EMAIL PROTECTED] wrote:
I'm not sure if this is exactly what you want, but there's an exec
command that takes a file object and interprets it as a python script.
I think there are also variants that take a file name, and
Cool, I should have mentioned this same change works for floats.
René Dudfield wrote:
cool, thanks :)
Committed revision 1026.
On 7/27/07, Campbell Barton [EMAIL PROTECTED] wrote:
Hi, I have been looking into parsing numbers with Blender3D's api and
thought Id take a look at how PyGame
cool, thanks :)
Committed revision 1026.
On 7/27/07, Campbell Barton [EMAIL PROTECTED] wrote:
Hi, I have been looking into parsing numbers with Blender3D's api and
thought Id take a look at how PyGame parses numbers.
Even though youd think PyInt_AsLong would only work with PyInt's it
Hi, I have been looking into parsing numbers with Blender3D's api and
thought Id take a look at how PyGame parses numbers.
Even though youd think PyInt_AsLong would only work with PyInt's it
actually converts any type that supports the PyNumber protocol into an
in. - so theres no advantage
15 matches
Mail list logo