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