[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] Loading commands from a file
- To: "pygame-users@xxxxxxxx" <pygame-users@xxxxxxxx>
- Subject: [pygame] Loading commands from a file
- From: "Ian Mallett" <geometrian@xxxxxxxxx>
- Date: Thu, 26 Jul 2007 13:27:48 -0700
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: pygame-users-outgoing@xxxxxxxx
- Delivered-to: pygame-users@xxxxxxxx
- Delivery-date: Thu, 26 Jul 2007 16:27:57 -0400
- Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; b=L1mJdON3kxTalBtoV2jUgghKLsjeAogDpkUpBfPnjnFA20TbkJuV2yq5cZNc5J8SLwqVuMQMfRTNlpPoDKUVlLR6sixnYhKSz8Sf1ujh7I09oFfq4+nbVO9SDDIFVJVj6GIf70zvP6hhiyOR98TFfmFiPWcRELge4MT3ZYBgVhE=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type; b=tt0VfklSZvxFWh76nkvlTuVzEElw6BZ7/YdFGmckxRXBr92MKoBHJfzUc465nzUtz2Htr+RnyxYPgmA8jIzTl92BA0isNJRPPYAG/cZVtNQCKD+jbtuZPGKqaJg0Lyz26R1Kw4F6qBJBOW9WCkiJBE4sH3bKaQR8+nDxgHc9Bag=
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
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 in the .py file, but I think there must be a better way.
Thanks,
Ian