|
|
2008-07-12
, 00:49
|
|
|
Posts: 71 |
Thanked: 6 times |
Joined on Jun 2008
@ Lee's Summit, MO, USA
|
#2
|
|
|
2008-07-12
, 00:55
|
|
|
Posts: 5,478 |
Thanked: 5,222 times |
Joined on Jan 2006
@ St. Petersburg, FL
|
#3
|
| The Following User Says Thank You to GeneralAntilles For This Useful Post: | ||
|
|
2008-07-12
, 01:19
|
|
|
Posts: 100 |
Thanked: 13 times |
Joined on Mar 2008
|
#4
|
helloworld.py:6: RuntimeWarning: import cdrom: No module named cdrom import pygame helloworld.py:6: RuntimeWarning: import joystick: No module named joystick import pygame Traceback (most recent call last): File "helloworld.py", line 12, in <module> screen = pygame.display.set_mode((640, 480), 0, 32) pygame.error: Maximum supported bitdepth is 16
#!/usr/bin/env python
background_image_filename = 'sushiplate.jpg'
mouse_image_filename = 'fugu.png'
import pygame
from pygame.locals import *
from sys import exit
pygame.init()
screen = pygame.display.set_mode((640, 480), 0, 32)
pygame.display.set_caption("Hello, World!")
background = pygame.image.load(background_image_filename).convert()
mouse_cursor = pygame.image.load(mouse_image_filename)
while True:
for event in pygame.event.get():
if event.type == QUIT:
exit()
screen.blit(background, (0,0))
x, y = pygame.mouse.get_pos()
x-= mouse_cursor.get_width() / 2
y-= mouse_cursor.get_height() / 2
screen.blit(mouse_cursor, (x, y))
pygame.display.update()
|
|
2008-07-12
, 01:28
|
|
|
Posts: 5,478 |
Thanked: 5,222 times |
Joined on Jan 2006
@ St. Petersburg, FL
|
#5
|
| The Following User Says Thank You to GeneralAntilles For This Useful Post: | ||
|
|
2008-07-12
, 01:57
|
|
|
Posts: 4,783 |
Thanked: 1,253 times |
Joined on Aug 2007
@ norway
|
#6
|
No, you don't see these unless you're in Red Pill (which you really shouldn't be, if there are issues that need to be pounded out, you should use apt and dpkg), so turn Red Pill off and move on (if you really must have Red Pill on, then at least turn off the Magic system package and "Show all packages" in Settings. . . .).
|
|
2008-07-12
, 02:01
|
|
|
Posts: 5,478 |
Thanked: 5,222 times |
Joined on Jan 2006
@ St. Petersburg, FL
|
#7
|
|
|
2008-07-12
, 02:06
|
|
|
Posts: 100 |
Thanked: 13 times |
Joined on Mar 2008
|
#8
|
|
|
2008-07-25
, 11:57
|
|
Posts: 132 |
Thanked: 40 times |
Joined on Jun 2008
|
#9
|
|
|
2008-07-25
, 12:21
|
|
|
Posts: 5,478 |
Thanked: 5,222 times |
Joined on Jan 2006
@ St. Petersburg, FL
|
#10
|
| The Following User Says Thank You to GeneralAntilles For This Useful Post: | ||
Does anyone recognize these? Anyone know where I can get them?