PyCharm autocomplete does not work with pygame

Iva*_*nov 8 python pygame pycharm

I've just installed PyCharm Community Edition 3.4.1 and tried to make a simple pygame project in it. I found that code completion runs in a weird way. In this case:

from pygame import event
event.
Run Code Online (Sandbox Code Playgroud)

when I type event. a completion popup with event methods shows immediately. But in the second case:

import pygame
pygame.event.
Run Code Online (Sandbox Code Playgroud)

a popup contains only object methods.

How can I learn the autocomplete tool to look deeper into the library?

Gam*_*iac 5

除了创建自己的骷髅之外,你不能.如果启用以下内容,则可以使pycharm更好地完成代码:

在此输入图像描述

但除此之外,你运气不好.Python很难使代码完成,因为它是一种动态语言,并且存根(骨架)并不存在.