Quantcast
Channel: Programming Forums
Viewing all articles
Browse latest Browse all 51036

Python graphics with pygame and livewires

$
0
0
Hi i'm new to this and i'm learning from an ebook i tried this code but it didn't work i've been unable to find and fix the problem.
from livewires import games, color

SCREEN_WIDTH = 640
SCREEN_HEIGHT = 480

my_screen = games.Screen(SCREEN_WIDTH, SCREEN_WIDTH)

back_image = games.load_image("fireworks5.jpg", transparent = False)
my_screen.set_background(back_image)

games.Text(screen = my_screen, x = 500, y = 30, text = "Score: 1273693",
           size = 50, color = color.white)

my_screen.mainloop()




No errors are displayed it just doesn't run when i double click it. This happened right after i tried displaying text on the screen.

Viewing all articles
Browse latest Browse all 51036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>