Hi,
I'm having a few problems with pygame, i'm a lot of a newbie to it, so I'm probably missing something obvious. However, here's basically what I am doing. Do I have to append libraries like in C++? If so how?
Code:
import pygame
pygame.init()
if not pygame.font:
print("No fonts!")
font = pygame.font.Font(None, 25)
text = .........
Now once I head off back to the terminal I type
Code:
$ python3 ch1.py
ch1.py:52: RuntimeWarning: use font: No module named font
(ImportError: No module named font)
font = pygame.font.Font(None, 25)
Traceback (most recent call last):
File "ch1.py", line 52, in <module>
font = pygame.font.Font(None, 25)
File "/usr/lib/python3.2/site-packages/pygame/__init__.py", line 70, in __getattr__
raise NotImplementedError(MissingPygameModule)
NotImplementedError: font module not available
(ImportError: No module named font)
Tactics & Solutions Tried
1. Reinstalled Pygame -> pygame yum installed successfully, no complaints
2. Checked pygame.font
Code:
#CHANGED
if not pygame.font:
print("Font not found")
#TO
if pygame.font:
print("Font Found!")
else:
print("Font not found...")
Output:
I still get the above error though.
3. tried...
output...
Code:
File "ch1.py", line 6, in <module>
import pygame.font
ImportError: No module named font
How to I install the module?
So, here we are with an as yet unsolved problem
Thank you.