473,385 Members | 2,029 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Pygame Q (linux) beginner

Running 2.4.1 Python (learning)
Running SUSE Linux 10

Am learning from a new books that mostly deals with windows python and
Pygames called "Game Programming" by Randy Harris (2007) His books
references Python 2.4.2 and Pygame 1.7.1 with these comments:

"If you are using a Linux machine, you probably won't have the simple
installer that came with the windows version. Follow the instructions
at http://pygame.org/install. You may have to run a couple of scripts
to make everything work, but just follow the directions and you will be
fine."

Could anybody suggest or make a helpful comment in view of what
information I have supplied. At Chapter 5 is where the Pygame module is
introduced so I have a little time before I have to figure out what I
have to download and install.

Thanks very much in advance for any direction.

Terry
Apr 1 '07 #1
5 1639
En Sat, 31 Mar 2007 23:37:16 -0300, enquiring mind <"enquiring
mind"@braindead.comescribió:
Running 2.4.1 Python (learning)
Running SUSE Linux 10

Am learning from a new books that mostly deals with windows python and
Pygames called "Game Programming" by Randy Harris (2007) His books
references Python 2.4.2 and Pygame 1.7.1 with these comments:

"If you are using a Linux machine, you probably won't have the simple
installer that came with the windows version. Follow the instructions
at http://pygame.org/install. You may have to run a couple of scripts
to make everything work, but just follow the directions and you will be
fine."

Could anybody suggest or make a helpful comment in view of what
information I have supplied. At Chapter 5 is where the Pygame module is
introduced so I have a little time before I have to figure out what I
have to download and install.
First: read that page.
I don't use SUSE myself, but the first hit on Google for "pygame SUSE"
goes into the Novell site, and SUSE 10.1 appears to include pygame
1.7.1release14 (or at least, you should be able to download and install
the RPM from Novell)

--
Gabriel Genellina

Apr 1 '07 #2
enquiring mind wrote:
Running 2.4.1 Python (learning)
Running SUSE Linux 10

At Chapter 5 is where the Pygame module is
introduced so I have a little time before I have to figure out what I
have to download and install.
Are you asking for advice how to install pygame on SuSE 10 ?
Well, that's easy:

python-pygame....rpm comes with SuSE.
Just install it with YaST2; the additional packages it
needs (like libSDL) are installed automatically then.
So you don't have to download any packages from www.pygame.org.

Another hint: If sound in pygame doesn't work, try

export SDL_AUDIODRIVER=alsa

right before starting your script.

H.
Apr 1 '07 #3
Gabriel Genellina wrote:

En Sat, 31 Mar 2007 23:37:16 -0300, enquiring mind <"enquiring
mind"@braindead.comescribió:
Running 2.4.1 Python (learning)
Running SUSE Linux 10

Am learning from a new books that mostly deals with windows python and
Pygames called "Game Programming" by Randy Harris (2007) His books
references Python 2.4.2 and Pygame 1.7.1 with these comments:

"If you are using a Linux machine, you probably won't have the simple
installer that came with the windows version. Follow the instructions
at http://pygame.org/install. You may have to run a couple of scripts
to make everything work, but just follow the directions and you will be
fine."

Could anybody suggest or make a helpful comment in view of what
information I have supplied. At Chapter 5 is where the Pygame moduleis
introduced so I have a little time before I have to figure out what I
have to download and install.
First: read that page.
I don't use SUSE myself, but the first hit on Google for "pygame SUSE"
goes into the Novell site, and SUSE 10.1 appears to include pygame
1.7.1release14 (or at least, you should be able to download and install
the RPM from Novell)

--
Gabriel Genellina
Thanks, Gabriel. I only googled pygame and not SUSE. The next post
says it is
already included so I will ask my programmer buddy to help me.
Apr 1 '07 #4
hlubenow wrote:
>
enquiring mind wrote:
Running 2.4.1 Python (learning)
Running SUSE Linux 10

At Chapter 5 is where the Pygame module is
introduced so I have a little time before I have to figure out what I
have to download and install.

Are you asking for advice how to install pygame on SuSE 10 ?
Well, that's easy:

python-pygame....rpm comes with SuSE.
Just install it with YaST2; the additional packages it
needs (like libSDL) are installed automatically then.
So you don't have to download any packages from www.pygame.org.

Another hint: If sound in pygame doesn't work, try

export SDL_AUDIODRIVER=alsa

right before starting your script.

H.
Thank you very much. A buddy installed SUSE 10 in Dec. for me so I
shall ask him to look for rpm which I understand from your post includes
pygame. You have no idea how much I appreciate your information.
Apr 1 '07 #5
enquiring mind wrote:
Thank you very much. A buddy installed SUSE 10 in Dec. for me so I
shall ask him to look for rpm which I understand from your post includes
pygame. You have no idea how much I appreciate your information.
My pleasure.

By the way:

It would be quite easy to install it yourself, too. Here's how:

If you use KDE, click on the start-menu-button and go to
System/ControlCenter(YaST) there. You're asked for your root-password.
Enter it and YaST2 appears (it is SuSE's graphical installation tool). Click
on Software/Software installation. After a while a search-field appears.
Enter "python-pygame" there and click on "search". It should be shown in
the right window. Click on the rectangle left of it and press "keep
changes" (or "ok" or so) in the right corner at the bottom. You should be
asked to insert some CD/DVD then. Do it, wait a while and pygame should
have been installed.

It is really not much more difficult than on Windows.

See you

H.
Apr 2 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Lane LiaBraaten | last post by:
Does anyone know a way to insert a pygame surface into a tkinter gui? I am writing a program similar to a mpeg player, i.e. i need the mpeg playing capabilities of pygame and the gui stuff from...
1
by: ardechou | last post by:
hi i want to find a tutorial for pygame but not on the site of pygame , just a tutorial for a beginner , to open a progam , to see the resolution of the screen , to use the mouse , to write text...
5
by: Andrea Griffini | last post by:
Just a quick shoot... can I produce a "closed source" program using "core" python, pygame (and eventually psyco), packaging it by using py2exe and a custom installer ? A clear yes/no answer is...
12
by: Marian Aldenhövel | last post by:
Hi, I am trying to make pygame play music on windows. This simple program: import pygame,time pygame.init() print "Mixer settings", pygame.mixer.get_init() print "Mixer channels",...
3
by: Tim Knauf | last post by:
Hi everyone, I'm glad to have found this list. I've written a small script for my own use which, amongst other things, captures mouse click information from a window containing an image. I used...
2
by: Brent W. Hughes | last post by:
I'm just starting to learn pygame. I write what I think is just about the simplest program that should display a window and then quit. #----------------------------------------------- import sys...
0
by: Julian Snitow | last post by:
Here is a more visual example of the technique presented in Logan Koester's article, "Live Coding in Python" (http://www.logankoester.com/mt/2006/07/live_coding_with_python_1.html). It's very...
11
by: dynamo | last post by:
Hi guys i have come again with more problems.This time it has to do with pygame.The following code does not give any error messages but it does not do what it is supposed to do either.the code is a...
1
by: koolest1 | last post by:
Im working in red hat linux 9.0. I've downloaded the pygame package but there is some problem while installing it. For the tar version, initial steps execute OK, namely, # tar xzvf...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.