也许您可以使用pygame。
http://www.pygame.org/wiki/about
Pygame使用opengl,directx,windib,X11, linux帧缓冲区 和许多其他不同的后端…
更新: 简单的例子:
import pygameimport sysimport timepygame.init()size = (pygame.display.Info().current_w, pygame.display.Info().current_h)black = 0, 0, 0screen = pygame.display.set_mode(size)ball = pygame.image.load("ball.gif")ballrect = ball.get_rect()screen.fill(black)screen.blit(ball, ballrect)pygame.display.flip()time.sleep(5)跑:
SDL_NOMOUSE=1 python ./ball.py



