-
pygame.locals
- pygame constants
该模块包含由pyGame使用的各种常量。它的内容自动放置在pyGame模块命名空间中。但是,应用程序可以使用
pygame.locals
属性仅包含pyGame常量from pygame.locals import *
。各种常量的详细描述可以在pyGame文档中找到。以下是他们中的一些人的位置。
这个
pygame.display
pygame module to control the display window and screen 模块包含如下标志FULLSCREEN
使用者pygame.display.set_mode()
Initialize a window or screen for display 。这个
pygame.event
pygame module for interacting with events and queues 模块包含各种事件类型。这个
pygame.key
pygame module to work with the keyboard 模块列出了键盘常量和修饰符 (K_
* andMOD_
* )与key
和mod
对象的属性KEYDOWN
和KEYUP
事件。这个
pygame.time
pygame module for monitoring time 模块定义TIMER_RESOLUTION
。
Edit on GitHub