Brandon N wrote:
No, this is normal for Python -- you must import a module to use it (not just its package). Pygame actually does a trick with its sub-modules, which is probably what's causing the confusion. For example, you can doThanks, that seems to be the solution.
Interestingly, perhaps this is a Python feature that I am unaware of but this seems strange to me:
>>> import ctypes >>> ctypes.util.find_library Traceback (most recent call last): File "<stdin>", line 1, in ? AttributeError: 'module' object has no attribute 'util' >>> from ctypes.util import find_library >>>
Is there something unique about the util module in ctypes?
import pygame pygame.display.something(...)
This works because in pygame/__init__.py is something along the lines of:
import pygame.display
Cheers Alex.