1

私の本のプログラムに問題があります。私が書いた単純なコードがあります:

from livewires import games

games.init(screen_width = 640, screen_height = 480, fps = 50)

games.screen.mainloop()

そしてエラー:

Traceback (most recent call last):
  File "/home/adrian/python_project/gra.py", line 3, in <module>
    games.init(screen_width = 640, screen_height = 480, fps = 50)
AttributeError: 'module' object has no attribute 'init'

このコマンドでパケットをインストールしました(Ubuntuを使用しています):

sudo apt-get install python-pygame
sudo python2.7 setup.py install (I downloaded LiveWires-2.1 and extracted it)

このプログラムを実行するにはどうすればよいですか?

4

1 に答える 1