Python pygame Module
This page shows the popular functions and classes defined in the
pygame module.
The items are ordered by their popularity in 40,000 open source Python projects.
If you can not find a good example below, you can try
the search function
to search modules.
-
1. init()Used in 290 projects
-
2. quit()Used in 168 projects
-
3. QUITUsed in 167 projects
-
4. locals()Used in 131 projects
-
5. Surface()Used in 127 projects
-
6. KEYDOWNUsed in 117 projects
-
7. Rect()Used in 96 projects
-
8. K_LEFTUsed in 72 projects
-
9. K_RIGHTUsed in 72 projects
-
10. MOUSEBUTTONDOWNUsed in 68 projects
-
11. K_UPUsed in 68 projects
-
12. K_DOWNUsed in 68 projects
-
13. K_ESCAPEUsed in 67 projects
-
14. KEYUPUsed in 56 projects
-
15. MOUSEBUTTONUPUsed in 46 projects
-
16. DOUBLEBUFUsed in 44 projects
-
17. K_SPACEUsed in 44 projects
-
18. Color()Used in 42 projects
-
19. K_a()Used in 40 projects
-
20. FULLSCREENUsed in 39 projects
-
21. SRCALPHAUsed in 39 projects
-
22. K_s()Used in 39 projects
-
23. K_q()Used in 36 projects
-
24. K_d()Used in 34 projects
-
25. K_w()Used in 34 projects
-
26. MOUSEMOTIONUsed in 30 projects
-
27. HWSURFACEUsed in 29 projects
-
28. K_RETURNUsed in 27 projects
-
29. RESIZABLEUsed in 25 projects
-
30. error()Used in 24 projects
-
31. K_r()Used in 24 projects
-
32. K_p()Used in 19 projects
-
33. K_c()Used in 18 projects
-
34. K_e()Used in 17 projects
-
35. K_BACKSPACEUsed in 16 projects
-
36. K_1Used in 16 projects
-
37. USEREVENTUsed in 15 projects
-
38. K_x()Used in 15 projects
-
39. K_z()Used in 15 projects
-
40. K_f()Used in 15 projects
-
41. VIDEORESIZEUsed in 15 projects
-
42. K_b()Used in 14 projects
-
43. NOFRAMEUsed in 13 projects
-
44. JOYBUTTONDOWNUsed in 13 projects
-
45. K_m()Used in 13 projects
-
46. K_2Used in 13 projects
-
47. K_g()Used in 13 projects
-
48. BLEND_RGBA_MULTUsed in 13 projects
-
49. camera()Used in 13 projects
-
50. font()Used in 12 projects
-
51. mixer()Used in 12 projects
-
52. K_y()Used in 12 projects
-
53. K_n()Used in 12 projects
-
54. K_h()Used in 12 projects
-
55. display()Used in 11 projects
-
56. OPENGLUsed in 11 projects
-
57. K_i()Used in 11 projects
-
58. K_l()Used in 11 projects
-
59. K_o()Used in 11 projects
-
60. K_t()Used in 11 projects
-
61. color()Used in 11 projects
-
62. JOYAXISMOTIONUsed in 10 projects
-
63. K_3Used in 10 projects
-
64. event()Used in 10 projects
-
65. K_TABUsed in 9 projects
-
66. gfxdraw()Used in 9 projects
-
67. K_v()Used in 9 projects
-
68. K_LSHIFTUsed in 9 projects
-
69. KMOD_CTRLUsed in 9 projects
-
70. K_0Used in 8 projects
-
71. K_4Used in 8 projects
-
72. K_LCTRLUsed in 8 projects
-
73. image()Used in 8 projects
-
74. surfarray()Used in 8 projects
-
75. K_DELETEUsed in 7 projects
-
76. K_RSHIFTUsed in 7 projects
-
77. K_u()Used in 7 projects
-
78. JOYBUTTONUPUsed in 7 projects
-
79. K_k()Used in 7 projects
-
80. constants()Used in 7 projects
-
81. K_F5Used in 6 projects
-
82. K_5Used in 6 projects
-
83. K_6Used in 6 projects
-
84. K_PAGEUPUsed in 6 projects
-
85. K_PAGEDOWNUsed in 6 projects
-
86. sprite()Used in 6 projects
-
87. K_j()Used in 6 projects
-
88. K_COMMAUsed in 6 projects
-
89. BLEND_ADDUsed in 6 projects
-
90. JOYHATMOTIONUsed in 6 projects
-
91. KMOD_ALTUsed in 6 projects
-
92. K_RCTRLUsed in 5 projects
-
93. PixelArray()Used in 5 projects
-
94. KMOD_SHIFTUsed in 5 projects
-
95. K_HOMEUsed in 5 projects
-
96. K_ENDUsed in 5 projects
-
97. K_KP_ENTERUsed in 5 projects
-
98. K_7Used in 5 projects
-
99. K_8Used in 5 projects
-
100. K_9Used in 5 projects
-
101. K_F11Used in 5 projects
-
102. draw()Used in 5 projects
-
103. rect()Used in 5 projects
-
104. mouse()Used in 5 projects
-
105. K_PERIODUsed in 5 projects