pygame and livewires, small problem

Please support our Python advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Oct 2009
Posts: 38
Reputation: Garrett85 is an unknown quantity at this point 
Solved Threads: 0
Garrett85 Garrett85 is offline Offline
Light Poster

pygame and livewires, small problem

 
0
  #1
32 Days Ago
I am reading the book "Python Programming 2nd Ed. for the absolute beginner" and I am having some trouble with a very simple program. I was instructed to download and install pygame and the livewires package as I have done. This program is meant to display a grahical window, that's it. But I'M getting the following error with the following code.

AttributeError: 'module' object has no attribute 'init' on line 6

  1. # New Graphics Window
  2. # Demonstrates creating a graphics window
  3.  
  4. from livewires import games
  5.  
  6. games.init(screen_width = 640, screen_height = 480, fps = 50)
  7.  
  8. games.Screen.mainloop()
Reply With Quote Quick reply to this message  
Join Date: Jun 2009
Posts: 47
Reputation: fallopiano is an unknown quantity at this point 
Solved Threads: 4
fallopiano's Avatar
fallopiano fallopiano is offline Offline
Light Poster
 
0
  #2
31 Days Ago
I dont know about livewires, but did you type it all correctly? :p also, if you want todo games in python, i would just learn pygame directly. its powerful yet easy to understand
Reply With Quote Quick reply to this message  
Reply

Message:



Other Threads in the Python Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC